Min RK
f4d2c246d5
use dedicated Session for activity monitor
...
instead of re-using kernel.session, which can cause hash collisions if other objects use `kernel.session`.
9 years ago
Thomas Kluyver
05979d9a4b
Merge pull request #2368 from minrk/stream-data-rate-boogaloo
...
only consider stream outputs for data-rate limit
9 years ago
Min RK
3d7c9b51a6
only consider stream outputs for data-rate limit
9 years ago
Min RK
15341ac758
Revert "only consider stream output for data rate limit"
9 years ago
Min RK
59c9df1b89
show current rate limit values in rate limit messages
9 years ago
Min RK
5da6eb6a41
only consider stream output for data rate limit
...
large stream outputs cause much more problems than image output
this does open up to large HTML and/or displayed text output,
but those seem to behave well more often than they don't.
9 years ago
Kevin Bates
ff19c4cd7c
enforce minimum timeout, ensure exceptions don't prevent culling of others
9 years ago
Kevin Bates
c3f753faf8
incorporate review recommendations
9 years ago
Kevin Bates
2f787088d5
Validate culling interval.
9 years ago
Kevin Bates
4000838321
Cull idle kernels after specified period
9 years ago
Min RK
2a5f8d2e17
add token auth to kernel websocket test
9 years ago
Min RK
75a0d71c28
give the server a second to notice that the websocket closed
...
because travis is slow
9 years ago
Min RK
8b76de80be
move tz utils to top-level private module ._tz
9 years ago
Min RK
9f55a857f3
use Z isoformat in UTC timestamps
...
instead of +00:00
9 years ago
Min RK
d45cb2ad80
track active kernel connections
9 years ago
Min RK
b472c55d9b
add activity watching to kernels
...
adds to kernel REST model:
- last_activity: datetime-aware timestamp
- execution_state: from last recorded status message
9 years ago
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
10 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
10 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.
11 years ago
Min RK
c36158270a
Don't set location header on restart
...
the URL doesn't change, it makes no sense.
11 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.
11 years ago
Min RK
9f501ab5cd
get kernelspec info from kernelspecs
...
instead of adding display_name to the sessions model
11 years ago
Min RK
66242b9a70
Merge pull request #503 from julienr/kernel_name
...
Adds kernel name to running notebooks list
11 years ago
Julien Rebetez
91d42c9600
Adds display_name to MappingKernelManager's kernel_model
11 years ago
Jonathan Frederic
831b2a523b
Merge pull request #472 from minrk/base-url-always-encoded
...
avoid double-encoding base_url
11 years ago
Steven Silvester
88c067ff27
Clean up allowed methods
11 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