Min RK
e5b135a905
debugging websocket connections
...
- add debug statement at the very beginning of a web socket request
- add debug statement in open, indicating that the connection has been accepted
- add timeout, so failed or slow kernel_info doesn't cause the request to never get a response
- don't send kernel_info_request before authenticating the request
The last one required some icky coroutine shenanigans,
because of our subclass structure, but it should work fine.
11 years ago
MinRK
a5a43e2746
Don't resend kernel info requests if a bad reply is received
11 years ago
MinRK
94d6196ef9
add websocket workarounds for tornado 3
...
WebSocketHandler.get is new in tornado 4
11 years ago
MinRK
769fe38789
cache kernel_info reply for protocol adaptation
...
WebSocket connections will not open until kernel_info is retrieved,
removing a race condition waiting for the reply to indicate adaptation,
which could result in a v5 message being sent to a v4 kernel.
The reply is cached, so that it need not be requested on each new connection.
11 years ago
MinRK
3693ac83ae
support binary message from javascript
11 years ago
MinRK
c9c131ebf9
s/unserialize/deserialize
11 years ago
MinRK
7da61bfc13
use default kernel name in kernels service
...
matches sessions API
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
MinRK
bd5a88e954
handle undefined or closed zmq_stream in on_message
...
can happen if a message is waiting in a pipe and the web socket is closed before the message is handled.
And give ZMQChannels a nice repr with their kernel ID
12 years ago
rgbkrk
88e52b2746
Only allow iframe embedding on same origin.
12 years ago
Thomas Kluyver
ae6309c122
Add support for different kernel specs to kernels REST API
12 years ago
MinRK
44d2a5b62a
only use zmq.jsonapi when talking to zmq sockets
...
use stdlib json otherwise
12 years ago
MinRK
336f47c126
update message spec adapter per review
...
- docs and comments
- adapt complete_reply with `end=null`, `start=-len(matched_text)`
- remove some incorrect `status` fields
- add `handle_reply_status_error` for handling `status=error` replies (no-op, currently)
12 years ago
MinRK
b06f382e9b
interrogate kernel_info to get protocol version for adaptation
12 years ago
Thomas Kluyver
c4e0ef142b
Merge pull request #5759 from minrk/travis-3.4
...
test with Python 3.4 on Travis
12 years ago
MinRK
191cd44c4d
cleanup socket cleanup
...
- set linger on sockets (avoid hang on exit)
- actually close sockets, not just zmq streams (blame pyzmq, aka me)
seems to be necessary for js/notebook/shutdown test to avoid hanging on Python 3.4.
12 years ago
Spencer Nelson
925a58c0b4
Remove unused imports
12 years ago
Dale Jung
27a77dedbd
API: Allow NotebookManagers to control kernel startup dir. #5468
12 years ago
MinRK
d37780c6a6
use config instead of App.instance to propagate notebook_dir
...
Should behave more logically (I hope).
12 years ago
MinRK
cb25736a24
reorganize who knows what about paths
...
- add NotebookApp.notebook_dir
- add KernelManager.root_dir
- remove NotebookManager.notebook_dir, move to FileNBM.notebook_dir
Default value for KM.root_dir and fNBM.notebook_dir is NotebookApp.notebook_dir, but they can be configured separately.
SessionManager passes the API path to KernelManager,
which is responsible for turning it into the kernel's cwd.
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
a184724bdb
remove base_kernel_url
12 years ago
MinRK
7ea311ad64
escape URLs in Location headers
12 years ago
Brian E. Granger
36aa39e3b7
Improving tests and setting of Location header.
12 years ago
Thomas Kluyver
d089f7749f
Use assertEqual, not deprecated assertEquals
12 years ago
Thomas Kluyver
836ad5f388
Add tests for interrupting & restarting kernel
...
These are in an existing test method, as starting and stopping kernels
for individual tests is expensive.
12 years ago
Thomas Kluyver
06fa301908
Refactor tests for kernels REST API
12 years ago
Zachary Sailer
9e0beba86f
adding to test_kernels_api.py
...
- Check all HTTP status code responses for requests
- Test invalid kernel IDs
- Check 'location' key in POST request to kernels
12 years ago
Zachary Sailer
97bc426bb7
add error catching to kernel manager
...
also, adding further tests to kernel manager
12 years ago
MinRK
5568cd5db0
ensure test_no_kernels runs first
...
since it expects a clean notebook server.
12 years ago
Zachary Sailer
27680dacb2
Code review changes.
...
Fixed handler issues and api tests from code review
from @minrk and @carreau.
12 years ago
Zachary Sailer
050a3098a8
review fixes on tests, add extra kernel api test
12 years ago
Zachary Sailer
e9ac1c2d37
add tests for session api
12 years ago
Brian E. Granger
136a19e5eb
Added base class for Notebook API tests.
12 years ago
Zachary Sailer
483d16c8ed
clean kernel manager
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
fd282698bc
removing debug logs
12 years ago
Zachary Sailer
62ec52e276
fix restart/interrupt kernel buttons
12 years ago
Zachary Sailer
09c4ecbb10
manual rebase services/kernels/
12 years ago
MinRK
39578beabc
remove max_msg_size altogether
...
It was a security feature without an application.
13 years ago
MinRK
4408ab6ca1
warn about messages dropped due to oversize
13 years ago
MinRK
563d9372bf
up default max_msg_size to 1MB
13 years ago
Thomas Kluyver
a2bf752dba
Remove unused imports in IPython.html
13 years ago
Thomas Kluyver
acb7eefef8
Remove unexpected keyword parameter to remove_kernel
...
Closes gh-3474
13 years ago
MinRK
cf726d6a40
mv IPython.html.notebook -> IPython.html
13 years ago