Min RK
1cac03528b
use single WebSocket connection for all channels
...
multiplex on a 'channel' key in message,
rather than separate websockets.
Unlike zmq, there aren't different message patterns that require the channels to be separate.
Reduces FD count by factor of 3 and connection complexity in js.
11 years ago
Matthias Bussonnier
27c90f1da3
Merge pull request #7087 from nheijermans/master
...
Enable the IPython Notebook to display messages from other clients.
11 years ago
Nathan Heijermans
408e3fa557
Backing out all changes to the UI and notebook.js.
...
Updated kernel.js to trigger the ``received_unsolicited_message.Kernel`` event instead. Notebook extensions can handle the event in whatever way they deem appropriate.
A notebook extension that takes advantage of this is available at https://github.com/nheijermans/nbexts.git .
11 years ago
Jason Grout
4496bfc6bd
Fix a bug in using promises with comms: this -> that
11 years ago
Nathan Heijermans
441d2a2ab0
Merge remote-tracking branch 'upstream/master'
11 years ago
Jonathan Frederic
b53386b37b
Ran function comment conversion tool
11 years ago
Nathan Heijermans
69ea433450
Merge remote-tracking branch 'upstream/master'
11 years ago
Nathan Heijermans
9c2afc9620
This feature was discussed in #6123 , but it doesn't look like anything was ever incorporated into the IPython Notebook.
...
Here's a brief overview of the changes:
- Display of messages from other clients can be toggled on and off from within a notebook, either using the ``<M-m>e`` keyboard shortcut in the web UI, or through the option in the "Kernel" menu.
- notebook.js controls whether messages are displayed through a callback that is invoked from kernel.js when no callbacks are available for a message.
- The UI displays ``execute_input`` messages originating from an other clients in new cells at the end of the notebook. Output messages (``execute_result`` et al.) will only be displayed if a cell exists with a matching message ID.
Pending design questions:
- Should each ``execute_input`` message cause a new cell to be created?
- Should new cells be placed at the end of the notebook, or elsewhere? If the latter, what criteria should be followed?
11 years ago
Matthias Bussonnier
480beffd7b
Move js donc into function themselves.
...
Then it is possible in the browser js console to get the documentation
interactively.
11 years ago
Jason Grout
da8cab76dd
Clean up promises code some more.
11 years ago
Jonathan Frederic
61ebd40206
Bug fix, promise not resolving.
11 years ago
Jonathan Frederic
907bde3b25
Address review comments
11 years ago
Jonathan Frederic
3c949aad92
Remove message promise.
11 years ago
Jonathan Frederic
fe398593e7
Typo fix
11 years ago
Jonathan Frederic
93cedc167e
Address @takluyver 's comments
11 years ago
Jonathan Frederic
eb319c8aab
Promise logic is infectious like a disease
11 years ago
Jonathan Frederic
b56fc606ad
Promise the messages to the model
11 years ago
Jonathan Frederic
bed3a4cfda
use es6
11 years ago
Jonathan Frederic
bbcd5cb55f
Bug fixes
11 years ago
Jonathan Frederic
3870bb571b
Use rsvp.js for Promises
11 years ago
Jonathan Frederic
1d1572421f
Add a WrappedError class
11 years ago
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