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
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
Thomas Kluyver
2cc7b1ca30
Merge pull request #4536 from minrk/msgspec5
...
Updating the message spec (finish IPEP 13, 24)
12 years ago
MinRK
58aca05486
add version key to js message headers
12 years ago
MinRK
fb72c3d863
remove an inappropriate `!`
...
the logic was backwards.
12 years ago
MinRK
b78c5b1554
s/object_info_request/inspect_request
12 years ago
MinRK
a74c79ceab
update completion_ and objection_info_request
...
both requests take:
- code (up to full cell)
- cursor_pos (cursor offset in unicode characters)
and object_info_replies return a mime-bundle, instead of structured data
12 years ago
MinRK
5e8ce3b7e1
remove user_variables
...
leave only user_expressions
12 years ago
MinRK
5fb9837f5a
pyerr -> error
12 years ago
MinRK
38c76aa913
pyout -> execute_result
...
nbformat and nbconvert are not affected
12 years ago
Min RK
6b7d3fddec
Merge pull request #5668 from minrk/async-output
...
allow async output on the most recent request
12 years ago
MinRK
82964a09c2
log all failed ajax API requests
12 years ago
MinRK
66ee7dcea4
allow async output on the most recent request
...
Keeps track of the most recent request, so async output is still allowed
12 years ago
Jason Grout
ea66ebe316
Change $.post to this.post in the kernel js file
...
This makes it easy to override the post function for custom communication requirements. Any replacement function, of course, needs to have the same semantics as $.post.
12 years ago
MinRK
37cb0fbdee
remove websocket url
...
websockets should follow the kernel URL
(normal behavior is unchanged, only unused configurability is removed)
12 years ago
MinRK
9629bce503
fix url encoding in services
...
At this point, zero attributes should be encoded URLs
12 years ago
Brian E. Granger
bc7b51d1b0
Merge pull request #4374 from jdfreder/widget-msg
...
IPEP 23: Backbone.js Widgets
12 years ago
Matthias BUSSONNIER
98101f9c6c
add js kernel_info request
12 years ago
Jonathan Frederic
469c865603
Added support for multiple kernels.
12 years ago
Jonathan Frederic
6871c8f9e0
Cherry pick of @jasongrout 's 2bc2f96.
...
Only merged changes to notebook and kernel... (see original comment below).
Separate the widget registry from the widget managers;
attach widget managers to kernels.
Yet to do: take care of clean-up when a kernel is deleted
Conflicts:
IPython/html/static/notebook/js/widgetmanager.js
IPython/html/static/notebook/js/widgets/widget.js
12 years ago
Jason Grout
00472333ec
log the error stack for a kernel javascript error message
12 years ago
MinRK
3ad0072c9e
make sure to encode URL components for API requests
...
notebook names can have spaces, hashes, other special characters.
12 years ago
MinRK
b666345633
allow callbacks on status messages
12 years ago
MinRK
9e198d2bd6
attach comm_manager to kernel
12 years ago
MinRK
04adce96af
add message metadata to comm and kernel.send_shell_message
12 years ago
MinRK
4fdc4bb3fc
get clear_output callback properly
12 years ago
MinRK
76994d2ff8
update callback structure in js commands
12 years ago
MinRK
f7e6435256
only pass shell.reply callback to oinfo / complete
...
These should not have side effects, so no need to expose full callback structure.
Also, object_info method shouldn't have `_request` in its name.
12 years ago
MinRK
d99e25f245
refactor js callbacks
...
all callbacks get the whole message
12 years ago
MinRK
8199909e62
Improvements to kernel.js
...
- dispatch iopub handlers by msg_type
- add Kernel.send_shell_message public API
- use strict (and related fixes)
12 years ago
MinRK
fc4fb92580
review pass on multidir js
12 years ago
MinRK
e16a5807c7
fixup bad rebase
12 years ago
Zachary Sailer
8c2009874c
session manager restructuring
...
Redid the sessionmanager, added tests for the session manager,
and added a sqlite database to hold kernel,session,nb mapping.
12 years ago
Zachary Sailer
8261ac2cb9
change standard money keys
12 years ago
Zachary Sailer
385ad6f509
manual rebase static/services (add session.js)
12 years ago
Jason Grout
54aa8a9f61
Make parameters for kernel start method more general
12 years ago
MinRK
b322e72bee
add Kernel.clear_callbacks_for_msg
13 years ago
MinRK
971aea1eda
trigger `Kernel.status_started` after websockets open
...
This leads to a more logical state for event watchers to expect.
13 years ago
Andrea Bedini
47b873295a
Fix documentation of Kernel.stop_channels
13 years ago
Min RK
ac88931fee
Merge pull request #3850 from minrk/store_history
...
add missing store_history key to Notebook execute_requests
13 years ago