Min RK
8e141df890
run Python tests with a token
...
exercises token auth
9 years ago
Min RK
fe86b65183
json_errors should be outermost decorator on API handlers
...
in order to apply to 403 raised by web.authenticated
9 years ago
Min RK
3be8697b48
iopub rate limit refinements
...
- reset counter on status: idle (avoids Run All running into limits)
- fix rate measurements to exclude messages not sent due to rate limiting
- fix formatting of rate-exceeded messages, tweak text a bit
- after pausing output, don't resume sending until rate has dropped 20% below limit, to avoid rapid back & forth across the limit
9 years ago
Sylvain Corlay
a91af4d642
Update traitlets API
10 years ago
Min RK
b6e8a3732e
Allow replacing stale websocket connections
...
instead of refusing duplecate connections,
since reconnect on flaky network is more likely.
10 years ago
Min RK
4fe10b8142
Prevent session_id collisions
...
Keep a registry of open sessions, and refuse to open duplicates.
10 years ago
Min RK
1c47a3dbb5
channel.closed is a method
...
since we weren't calling it, the restart channel was never closed,
causing process teardown to hang *sometimes*, depending on garbage collection.
10 years ago
Diego Mesa
482ed8a5a3
updating log.warn to log.warning
10 years ago
Min RK
c280b773fb
use session.deserialize to unpack message for rate limiting
...
rather than hardcoding json.loads
Messages should **never** be deserialized by any means other than the Session API.
10 years ago
Jonathan Frederic
9e2c95dc07
limit_window -> rate_limit_window
10 years ago
Jonathan Frederic
eb30002a82
Use a set for filter exceptions
10 years ago
Jonathan Frederic
7aaccbd545
Don't filter status, comm_info, kernel_info, and execute_request messages
10 years ago
Jonathan Frederic
c47f3d021b
Fix a bug in the code that parses the parent message from the msg_list
10 years ago
Jonathan Frederic
7232a6a99a
Clarification & cleanup
10 years ago
Jonathan Frederic
69faf0fb9b
Change the logic so the intervals are checked all of the time,
...
also changed no-limit default to "0"
10 years ago
Jonathan Frederic
f83485fcee
Remove log msg
10 years ago
Jonathan Frederic
4c99c5f7f8
Limit on websocket, not zmq
10 years ago
Jonathan Frederic
3b3c4d0315
Add simple iopub message rate limiter
10 years ago
Min RK
6024f04698
allow some KernelManager methods to be async
...
Allows custom KernelManagers to do slower async operations as part of kernel startup/shutdown.
10 years ago
Min RK
c36158270a
Don't set location header on restart
...
the URL doesn't change, it makes no sense.
10 years ago
Min RK
0c5a3b6d04
wait for kernel to restart
...
in API request to restart kernels
by waiting for the kernel to respond to a kernel_info request.
10 years ago
Min RK
9f501ab5cd
get kernelspec info from kernelspecs
...
instead of adding display_name to the sessions model
10 years ago
Min RK
66242b9a70
Merge pull request #503 from julienr/kernel_name
...
Adds kernel name to running notebooks list
10 years ago
Julien Rebetez
91d42c9600
Adds display_name to MappingKernelManager's kernel_model
10 years ago
Jonathan Frederic
831b2a523b
Merge pull request #472 from minrk/base-url-always-encoded
...
avoid double-encoding base_url
10 years ago
Steven Silvester
88c067ff27
Clean up allowed methods
10 years ago
Min RK
8de725a8de
server-side fixes for double-escaped base_url
11 years ago
Jason Grout
cf69ab7428
Use instances of traits instead of trait classes
11 years ago
Min RK
5403d2479d
make content_security_policy a property
...
and *add* `default-src: 'none'` to API handlers
custom CSP applies to all handlers
11 years ago
Min RK
709ed0d04b
Add APIHandler base class
...
- ensures all API responses are json
- sets CSP to prevent js execution on all API replies
11 years ago
Jason Grout
a016e42cf7
Add links to the REST API documentation (what there is on the wiki)
11 years ago
Min RK
d71a59cc9f
s/jupyter_notebook/notebook
11 years ago