Commit Graph

60 Commits

Author SHA1 Message Date
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.
2014-11-15 12:19:35 -08:00
Min RK
8407ba3a08 update frontend with path/name changes
- remove name from models
- path is full path (contains name)
2014-11-10 14:02:19 -08:00
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.
2014-10-19 15:40:50 -07:00
Jessica B. Hamrick
bbb9edf374 Fix bugs with this and that 2014-10-08 11:30:32 -07:00
Jessica B. Hamrick
37c2419c5e Rename all status_event to kernel_event 2014-10-08 11:30:32 -07:00
Jessica B. Hamrick
e5a5bdcdd3 Handle and test for failed restart in session.js 2014-10-08 11:30:32 -07:00
Jessica B. Hamrick
7f8b95a661 Add status_ready.Kernel event and rename status_started to status_created 2014-10-08 11:30:31 -07:00
Jessica B. Hamrick
504f0b4d9d Add docstring to Session.restart 2014-10-08 11:30:31 -07:00
Jessica B. Hamrick
c43e06bbc4 Add test for kernel_dead.Session 2014-10-08 11:30:31 -07:00
Jessica B. Hamrick
9180004fd1 Better way of logging events 2014-10-08 11:30:31 -07:00
Jessica B. Hamrick
d5a4dec6c3 Add restart function to session 2014-10-08 11:30:30 -07:00
Jessica B. Hamrick
42a9a1f46d Make kernel js events clearer and more consistent 2014-10-08 11:30:30 -07:00
Jessica B. Hamrick
951d9a7249 Don't actually change kernel constructor signature 2014-10-08 11:30:30 -07:00
Jessica B. Hamrick
05611569ec Add docstrings to kernel.js 2014-10-08 11:30:30 -07:00
Jessica B. Hamrick
4aa66d09dd Add docstrings to session.js 2014-10-08 11:30:30 -07:00
Jessica B. Hamrick
2dbfc30934 Add no_kernel.Kernel event 2014-10-08 11:30:30 -07:00
Jessica B. Hamrick
befe8eb720 Update session tests 2014-10-08 11:30:29 -07:00
Jessica B. Hamrick
cf98a0a5a0 Better respect for abstraction barriers 2014-10-08 11:30:29 -07:00
Jessica B. Hamrick
2f3d8617b4 Fix shutdown test 2014-10-08 11:30:29 -07:00
Jessica B. Hamrick
c0eb372612 Fix bugs introduced into session.js 2014-10-08 11:30:28 -07:00
Jessica B. Hamrick
8d76a40677 Clean up session class 2014-10-08 11:30:28 -07:00
Jessica B. Hamrick
c4a89cd54d Better user experience when kernel isn't found 2014-09-30 10:50:09 -07:00
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.
2014-08-18 10:50:25 -07:00
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.
2014-08-13 22:11:32 -07:00
MinRK
e3696996be JS: close WebSockets when killing kernels
by calling Kernel.stop_channels() in Session.delete and Kernel.kill
2014-08-13 14:21:14 -07:00
Thomas Kluyver
76477386ae Don't refer to global kernelselector object in Session 2014-07-24 16:55:18 -07:00
Thomas Kluyver
c432af1af5 Use JS events for switching kernelspecs 2014-07-24 16:55:00 -07:00
Thomas Kluyver
b644ddbe36 Store kernelspec in notebook metadata on change 2014-07-24 16:54:59 -07:00
Thomas Kluyver
9581bd7dc3 Change displayed kernel name when our session is started 2014-07-24 16:31:55 -07:00
MinRK
137f98014a pass ws_url to kernel constructor
via session constructor via notebook constructor…
2014-07-22 15:24:20 -07:00
Thomas Kluyver
6efbe46b73 Update JS for kernels and sessions APIs 2014-07-10 23:54:31 -05:00
Jonathan Frederic
2d7a4a7879 Some JS test fixes 2014-07-10 15:47:23 -05:00
jon
d9ab2d203a In person review with @ellisonbg 2014-07-10 15:47:23 -05:00
Jonathan Frederic
c7961ae2db Fix imports of "modules",
required after converting everything into dictionary returns.
2014-07-10 15:47:22 -05:00
Jonathan Frederic
0edfdbc703 Return dicts instead of classes,
this makes require.js more Python import like.
2014-07-10 15:47:22 -05:00
Jonathan Frederic
0e9e1dd5a3 MWE,
Fixed LOTS of bugs
2014-07-10 15:47:22 -05:00
Jonathan Frederic
516958ac07 Almost done!
Still need to check IPython uses in the widgets.
2014-07-10 15:26:25 -05:00
MinRK
82964a09c2 log all failed ajax API requests 2014-04-23 13:17:50 -07:00
MinRK
a184724bdb remove base_kernel_url 2014-02-11 21:26:10 -08:00
MinRK
9629bce503 fix url encoding in services
At this point, zero attributes should be encoded URLs
2014-02-08 23:09:25 -08:00
MinRK
a93040e810 s/get_data/get_body_data/ 2014-02-08 23:09:24 -08:00
MinRK
e1e0b19a6a s/base_project_url/base_url/
deprecate NotebookApp.base_project_url
2014-02-08 23:09:24 -08:00
MinRK
13fc9022d9 various unicode fixes
- remove notebookPath, notebookName, and baseProjectUrl methods everywhere
- use base_project_url *attributes* instead
- we should never use escaped URLs except when making an actual request

Should fix issues with double-escaping
2014-02-08 23:09:23 -08:00
MinRK
3ad0072c9e make sure to encode URL components for API requests
notebook names can have spaces, hashes, other special characters.
2013-11-22 11:21:01 -08:00
Paul Ivanov
357b78171a fix: JS kernel state should reflect killed state 2013-10-23 12:22:08 -07:00
MinRK
aea1bbde6a s/session_id/id 2013-10-18 16:13:53 -07:00
MinRK
0558ec4ce0 Cells shouldn't know about Sessions 2013-10-18 16:13:53 -07:00
MinRK
fc4fb92580 review pass on multidir js 2013-10-17 14:09:18 -07:00
Zachary Sailer
da58c8c470 Fixed session js ajax request.
Session was not creating a kernel object on the client side,
after the server created successfully created a session.
2013-10-17 14:09:12 -07:00
Zachary Sailer
c26700cd3a changes after session manager code review 2013-10-17 14:09:12 -07:00