Min RK
ded9e7b6ad
don't trigger kernel_starting after kernel_connected
...
trigger instead at the beginning of Kernel.start
if a websocket is fully connected, the kernel has finished starting
11 years ago
Min RK
ad83e79ea5
allow requesting contents without body
...
adds `?content=0` to only fetch the metadata in the model.
The REST API now exposes all arguments to ContentsManager.get.
11 years ago
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
Bussonnier Matthias
eaf8fdc4f9
Do not inject self in IPython namespace
...
And do not require nemaespace either
- this is bad practice, and this prevent from
writing a blended content manager that works both
with drive and localhost as they shoudl both export
themselves to IPython.Contents module.
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
Thomas Kluyver
95e60a544c
Update test to modify class config for default_cell_type
11 years ago
Thomas Kluyver
938630b475
Remove user_config js module
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
Jonathan Frederic
3ea8929b82
Merge pull request #6454 from jasongrout/links
...
Javascript link
11 years ago
Jason Grout
4496bfc6bd
Fix a bug in using promises with comms: this -> that
11 years ago
Thomas Kluyver
4cee2f5f3a
Merge pull request #7128 from minrk/more-v-less-m
...
A little more V, a little less M in the text editor
11 years ago
Scott Sanderson
ccc8cb9cbf
Minor cleanups in the contents API.
...
Noticed while poking around with a linter enabled.
11 years ago
Min RK
0dfcc1b512
expect JSON reply to save
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
Thomas Kluyver
7cf7d3f202
Merge pull request #6818 from jdfreder/race_conditions
...
Add promises to the widget framework.
11 years ago
Jonathan Frederic
61ebd40206
Bug fix, promise not resolving.
11 years ago
Min RK
d88f5c5898
Merge pull request #6874 from takluyver/config-js-api
...
Add JS config API
11 years ago
Min RK
c1a664dfb9
fix event hookup for kernel changed
...
event is kernel_created.Session
The spec name on the kernel also wasn't being changed when the kernel changed.
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
Thomas Kluyver
2bfdbfc631
Fix some other bugs
11 years ago
Thomas Kluyver
89222b6dfd
Actually define the module
...
I didn't forget something really obvious and important. Not at all.
11 years ago
Thomas Kluyver
cbd4929785
Use promising_ajax in config API
11 years ago
Thomas Kluyver
625c4f5bc2
Fix punctuation
11 years ago
Thomas Kluyver
d9b71ff750
Add JS config API
11 years ago
Thomas Kluyver
d3699c8e3b
Update JS docstrings in contents API
11 years ago
Thomas Kluyver
1e53c1f924
Re-raise errors with throw instead of Promise.reject()
11 years ago
Thomas Kluyver
56320588da
Return JSON from contents API checkpoint methods
11 years ago
Thomas Kluyver
aecb4bffa5
All aboard the promise train
11 years ago
Thomas Kluyver
11cfcc40d4
Use promises for GET requests
11 years ago
Min RK
0a22217f7e
Merge pull request #6900 from takluyver/contents-api-get-as-type
...
Contents API get as type
11 years ago
Thomas Kluyver
6f48b58b18
Fix various review comments
11 years ago
Thomas Kluyver
f9db65ab6f
Expose and use get requests specifying type in the JS
11 years ago
Thomas Kluyver
c7529c53eb
Eliminate remaining uses of extra_settings
11 years ago
Thomas Kluyver
ef98d48921
Disable passing extra AJAX settings to Contents.new()
11 years ago