Jonathan Frederic
c41dcb35e9
Proxy console.error calls
11 years ago
Jonathan Frederic
2eae36ac9a
Use load_class in comms instead of callbacks.
11 years ago
Min RK
fe00509f32
add sticky `Connection lost` notification
...
when reconnect process gives up
11 years ago
Min RK
a6d427e5c9
add exponential falloff for reconnect
...
avoids constant reconnect attempts every 3 seconds forever
gives up after 6 tries (last timeout 64s)
11 years ago
Thomas Kluyver
db6cd028ea
Merge pull request #6793 from takluyver/langinfo
...
Move language info from kernelspec to kernel_info_reply
11 years ago
Thomas Kluyver
9c7d73a05e
Move language info from kernelspec to kernel_info_reply
11 years ago
Thomas Kluyver
a77b5e8e31
Support specifying requirejs modules for comm targets
11 years ago
MinRK
a67abc297d
remove unnecessary 'js' subdir from services
...
part of the point of services is that they are just code, so they won't have js/less/etc. files.
11 years ago
MinRK
7fd161599b
cleanup serialize per review
11 years ago
MinRK
8c743d304f
unsigned ints for offsets
...
because signed ints for sizes is icky
11 years ago
MinRK
11f5775103
test binary websocket messages
...
only runs on slimerjs for now
11 years ago
MinRK
b548e51550
use TextEncoding for string<->ArrayBuffer
...
requires text-encoding js polyfill, for now
11 years ago
MinRK
3693ac83ae
support binary message from javascript
11 years ago
MinRK
6cef7fcb86
use utf8.js
...
move message serialization to kernel.serialize module
11 years ago
MinRK
c9c131ebf9
s/unserialize/deserialize
11 years ago
MinRK
3a1c845f96
support buffers in comm messages
...
- add buffers arg to comm Python api
- support binary websocket messages when buffers are present
- reimplement utf8 in javascript, because javascript is the best
11 years ago
MinRK
624f0071a2
remove on_first_message authentication
...
in ZMQStreams. No need for weird, special first message.
- use regular cookie auth
- use url param for session id
11 years ago
Jessica B. Hamrick
b650c56a66
One more this/that change
11 years ago
Jessica B. Hamrick
bbb9edf374
Fix bugs with this and that
11 years ago
Jessica B. Hamrick
37c2419c5e
Rename all status_event to kernel_event
11 years ago
Jessica B. Hamrick
8f28134a89
Keep trying to reconnect
11 years ago
Jessica B. Hamrick
29e6885b60
Test for autorestart and failed autorestart
11 years ago
Jessica B. Hamrick
7f8b95a661
Add status_ready.Kernel event and rename status_started to status_created
11 years ago
Jessica B. Hamrick
42e863db8c
Remove debugging statements
11 years ago
Jessica B. Hamrick
01ba501b88
Fix event tests
11 years ago
Jessica B. Hamrick
9180004fd1
Better way of logging events
11 years ago
Jessica B. Hamrick
42a9a1f46d
Make kernel js events clearer and more consistent
11 years ago
Jessica B. Hamrick
951d9a7249
Don't actually change kernel constructor signature
11 years ago
Jessica B. Hamrick
05611569ec
Add docstrings to kernel.js
11 years ago
Jessica B. Hamrick
2dbfc30934
Add no_kernel.Kernel event
11 years ago
Jessica B. Hamrick
999daf041c
Handle query string in Kernel.start
11 years ago
Jessica B. Hamrick
741b2e97b1
Only set channels to null when they are fully closed
11 years ago
Jessica B. Hamrick
a601531e1c
Move channels into their own object
11 years ago
Jessica B. Hamrick
cf98a0a5a0
Better respect for abstraction barriers
11 years ago
Jessica B. Hamrick
2f3d8617b4
Fix shutdown test
11 years ago
Jessica B. Hamrick
ade7692ccd
Fix bugs in kernel.js
11 years ago
Jessica B. Hamrick
bd16964276
Clean up kernel.js
11 years ago
Jessica B. Hamrick
58fcb3abb9
Show the user a different notification
11 years ago
Sylvain Corlay
c4006f1439
status_started.Kernel was never triggered
12 years ago
MinRK
d5a4553b8e
improve indicators and handling of dead kernels and broken websocket connections
...
I think it's still possible to get to a state with no kernel and insufficient indication.
Imperfect, but an improvement.
12 years ago
MinRK
0909694b50
avoid race condition when deleting/starting sessions
...
javascript doesn't guarantee the order of AJAX requests,
so we give `Session.delete` and `Kernel.kill` a callback signature.
Changing the kernel type calls `Notebook.start_kernel`,
which terminates the previous session, if defined,
before starting the new one.
A flag is stored, to prevent multiple simultaneous attempts to start sessions, raising a SessionAlreadyStarting Error,
preventing the spec_changed event from firing.
12 years ago
MinRK
e3696996be
JS: close WebSockets when killing kernels
...
by calling Kernel.stop_channels() in Session.delete and Kernel.kill
12 years ago
Sylvain Corlay
2c648fe4d0
bad call and missing call to unregister_comm
12 years ago
MinRK
137f98014a
pass ws_url to kernel constructor
...
via session constructor via notebook constructor…
12 years ago
MinRK
579f5101f0
restore websocket_url configurable
...
allows ws to be handled via separate proxies,
as appears to be the case on OpenShift and some other hosting services.
12 years ago
Thomas Kluyver
6efbe46b73
Update JS for kernels and sessions APIs
12 years ago
Jonathan Frederic
c7961ae2db
Fix imports of "modules",
...
required after converting everything into dictionary returns.
12 years ago
Jonathan Frederic
0edfdbc703
Return dicts instead of classes,
...
this makes require.js more Python import like.
12 years ago
Jonathan Frederic
0e9e1dd5a3
MWE,
...
Fixed LOTS of bugs
12 years ago
Jonathan Frederic
516958ac07
Almost done!
...
Still need to check IPython uses in the widgets.
12 years ago