dhirschf
1975bf830f
Addressed review comments
9 years ago
dhirschf
6bb89b717a
Workaround for Windows Containers
...
On Windows `os.stat` treats host mapped volumes as broken symlinks
9 years ago
Min RK
1e18e050a5
Merge pull request #2498 from parente/cull-busy-connected
...
Add cull_busy, cull_connected options
9 years ago
Peter Parente
c8ba55da21
Do not cull connected kernels by default
9 years ago
Peter Parente
85ba2bdabd
Fix help for cull_connected and cull_busy
9 years ago
Thomas Kluyver
576c3d9f9a
Add /api/shutdown handler
9 years ago
Peter Parente
d9b4c99180
Do not cull kernels doing work by default
9 years ago
Peter Parente
1550a04848
Add cull_busy, cull_connected options
...
Additional logic to support culling or skipping kernels that are busy or
that have connections.
9 years ago
Thomas Kluyver
5af43fbae1
Fix test not to expect notebooks sorted
...
PR gh-2281 removed the sorting step from the server. This can result in
non-deterministic test failures, because the test checked against a
list.
9 years ago
Min RK
122cbf6785
typo in log command
...
don't wrap format-arguments in a tuple
9 years ago
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
Min RK
6ef2e425c2
Merge pull request #2281 from delftswa2017/remove-duplicate-sort
...
Remove redundant sort from back-end
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
8d6460a4b3
Merge pull request #2215 from kevin-bates/cull-idle-kernels
...
Cull idle kernels
9 years ago
Min RK
3d7c9b51a6
only consider stream outputs for data-rate limit
9 years ago
Min RK
2e52d15522
add missing `@default` decorator on checkpoints_class
...
this is not strictly required,
as default generators are no longer deprecated,
but it'st still a good idea
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
Ajaya Adhikari
7d4d7daca3
Remove redundant sort from back-end
9 years ago
adimitrova
02cc130166
changed to pass python 2 tests too
9 years ago
adimitrova
47bbd07733
updated decodestring
9 years ago
Min RK
420715e3e5
Merge pull request #2234 from takluyver/i2204
...
Show server root directory in move dialog
9 years ago
Grant Nestor
2125922db3
Set default `root_dir` for ContentsManager
9 years ago
Kaushik Chaubal
7cd59275ea
add a dialog for large file size warning + simplify chunking logic
9 years ago
Kaushik Chaubal
7d4965abc0
fix of uploading large files crashes the browser #96 + adding unit tests
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
236198571b
test dirs are paths, not TempDir objects
9 years ago
Min RK
dc873f1290
use self.request in status test
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
32a353378a
track REST API activity
...
add /api/status endpoint for retrieving current status
includes
- started: start time of the server
- last_activity: latest activity across all endpoints
- connections: number of current connections
- kernels: number of current kernels
9 years ago
Min RK
8b76de80be
move tz utils to top-level private module ._tz
9 years ago
Min RK
bec396304b
add connections to sessions API tests
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
Srinivas Reddy Thatiparthy
161c174a98
rename log.warn to log.warning as log.warn is deprecated
9 years ago
Thomas Kluyver
ad3ab9b8c7
Send files to OS trash mechanism on delete
...
This adds a config option, defaulting to use trash, and adds a
dependency on the pure-Python 'send2trash' package. Linux, Mac and
Windows should all be supported.
Alternatively, we could make it default to hard delete (the current
behaviour), and let users opt in to trash behaviour. Then Send2Trash
could be a soft dependency.
This doesn't touch the UI yet, so you still get a confirmation dialog
which inaccurately says it will 'permanently delete' the file. If we
want to do this, we'll need some way for the contents manager to pass
the UI a hint about whether deleting is permanent or not.
Closes gh-165
10 years ago
Kyle Kelley
37bd0a7d78
Merge pull request #1877 from jdetle/terminals
...
Document Terminals API
10 years ago
John Detlefs
4cdaed7e5b
Fix other swagger error
10 years ago
Min RK
910caf56e1
Don't check origin on CSP violation reports
...
still authenticate, though
10 years ago
John Detlefs
77252b97a9
Change responses to actual behavior.
...
Fill in missing response descriptions
Fix terminal ID error
10 years ago
Min RK
951cfde98b
remove leftover print statement
10 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
Steven Silvester
781066a40e
Update handler and test
10 years ago
Steven Silvester
8f5a67ad6d
Allow kernelspecs to have spaces in them for backward compat
10 years ago
John Detlefs
ab8decfd40
Add terminals info to notebook api
10 years ago
Thomas Kluyver
ee4b9ce598
Allow None for post_save_hook
...
See gh-1868
10 years ago
Ryan Morshead
15a37c9ba7
fix for default value changes in ipython/traitlets/pull/332
10 years ago
Matthias Bussonnier
64d996f820
Merge pull request #1855 from minrk/rate-limit
...
iopub rate limit refinements
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
Thomas Kluyver
1de0423448
Improve performance of directory listing
...
- stat() the file once and reuse the result to save on syscalls. Not as
good as using scandir(), but should still help.
- Don't re-check if parent directories are hidden for each file in the
directory.
Could do with testing on Windows.
10 years ago
Min RK
92d3f4235d
Merge pull request #1359 from blink1073/generic-session
...
Update the session api in preparation for file and console sessions
10 years ago
Min RK
f96feb5e8b
fix os.path.samefile backport on py2 + Windows
...
os.path.samefile is available everywhere but Windows + py2.
Backporting the py3 implementation doesn't work because
`os.stat` on Windows py2 returns 0 for st_ino and st_dev,
which will always be equal.
In this case, use case-insensitive path comparison, plus full-stat comparison (times included).
10 years ago
Min RK
02a81adf3e
test opening an invalid notebook
...
ensure we get a validation failed message
10 years ago
Min RK
6768b89407
fix notebook validation
...
validate was imported from traitlets in #1527 , clobbering validate from nbformat
10 years ago
Pierre
2ae49c84f9
[Post save hook] Raise web.HTTPError on fail
10 years ago
Scott Sanderson
129f990122
TEST: Use addCleanup in test_sessions_api.
...
This ensures that directories are correctly cleaned up even if tests
fail during setUp.
10 years ago
Scott Sanderson
53ebb068c9
TEST: Use addCleanup in test_sessionmanager.
10 years ago
Scott Sanderson
9ba5c8dd90
TEST: Use addCleanup in test_contents_api.
...
This guarantess that resources are deleted correctly event if setUp fails.
10 years ago
Safia Abdalla
3ea9c96bbc
Merge pull request #1526 from minrk/nbconfig-priority
...
reverse nbconfig load order
10 years ago
Sylvain Corlay
a91af4d642
Update traitlets API
10 years ago
Min RK
710dcd6299
reverse nbconfig load order
...
list is in descending priority, so load should iterate back to front, to ensure user config wins
10 years ago
Min RK
300fef8e96
Merge pull request #1471 from minrk/reconnect
...
Fixes for reconnecting on a flaky network
10 years ago
Min RK
8c9e0c3ca3
finish-up os.replace PR
...
addresses last bit of review in #1370
- remove error-catching around os.replace
- move windows-specific handling to remove_file
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
Steven Silvester
cbdb8f1ceb
Fix method name
10 years ago
Steven Silvester
fb8943b676
Check for a directory in get_kernel_path
10 years ago
Steven Silvester
8f8730788d
Clean up the api and update tests
10 years ago
Sri Konduru
e07cb5a03c
use os.replace instead of os.rename if available
10 years ago
Steven Silvester
06087c2a12
Update sessionmanager tests
10 years ago
Steven Silvester
a4c02561f1
Only give back the notebook path if notebook type
10 years ago
Steven Silvester
3eaa5e426c
Clean up logic
10 years ago
Steven Silvester
197c673585
Clean up logic
10 years ago
Steven Silvester
8c6257bea5
Allow the deprecated session API to work
10 years ago
Steven Silvester
6486b2430f
Update the session model and the tests
10 years ago
Steven Silvester
76d08aca99
Update the session api in preparation for file and console sessions
10 years ago
Matthias Bussonnier
6b220c949b
Merge pull request #1253 from ryanlovett/master
...
Restore atomic intermediate if notebook is invalid.
10 years ago
Min RK
65ba875d5b
allow using sqlite from pysqlite2
...
in case Python was built with an incomplete standard library (missing sqlite3)
we do the same thing in IPython history, etc.
10 years ago
Min RK
41d6da235c
Merge pull request #879 from ellisonbg/nbext-pain
...
New nbextensions installation API
10 years ago
ryanlovett
4d4dde7f08
Resolve notes from #1253 .
10 years ago
ryanlovett
3d467d6dc2
Restore atomic intermediate if notebook is invalid.
10 years ago
Min RK
1c7bc21ca7
Merge pull request #1237 from blink1073/session-with-kernel-id
...
Allow a session to connect to an existing kernel
10 years ago
Steven Silvester
5b1e0a7d3c
Fall back on new kernel if kernel does note exist
10 years ago
Steven Silvester
59d90f3f72
Remove kernel_id handling temporarily
10 years ago
Steven Silvester
665e7b6c00
Fix handling of kernel_name and kernel_id
10 years ago
Steven Silvester
e449c08e1b
Allow a session to connect to an existing kernel
10 years ago
Steven Silvester
56c653927f
Allow kernel id to take precedence over name
...
Allow kernel id to take precidence over name
Fix spelling
10 years ago
Min RK
23b1beaabc
treat null values as unspecified in session PATCH
10 years ago
Min RK
e9957ddb35
Handle coroutine possibility in test_sessionmanager
10 years ago
Min RK
02d1554f8f
Allow modifying kernel associated with a session via PATCH
...
- PATCH to kernel.id attaches to other kernel
- PATCH to kernel.name starts new kernel with given name
Previous kernel is shutdown after the change
10 years ago
Jonathan Frederic
fa399450c4
Fix poor logic in manager.py
10 years ago
Jonathan Frederic
29279e21e7
Fix typo
10 years ago
Brian E. Granger
7705bfd5ab
New approach working, old approach gone.
10 years ago