Min RK
525f6a7561
fix backward f, nb
args for nbformat.write
2014-11-01 16:41:13 -07:00
MinRK
af735018f3
don't use nbformat.current in IPython.html
...
use top-level nbformat.read/write, v4 directly for compose
2014-11-01 16:41:11 -07:00
MinRK
07079095a8
update html/js to nbformat 4
2014-11-01 16:41:02 -07:00
Jessica B. Hamrick
d606d53b4e
More informative error messages
2014-10-08 11:30:30 -07:00
Jessica B. Hamrick
6bc5702398
More descriptive short message
2014-09-30 12:21:01 -07:00
Jessica B. Hamrick
46e40e5ea1
Return a proper JSON object
2014-09-30 10:50:09 -07:00
Jessica B. Hamrick
5e1e8a116c
Use 501 error code instead of 400
2014-09-30 10:50:09 -07:00
Jessica B. Hamrick
c4a89cd54d
Better user experience when kernel isn't found
2014-09-30 10:50:09 -07:00
Jessica B. Hamrick
cfc234dc89
Handle NoSuchKernel errors more gracefully
2014-09-30 10:50:08 -07:00
MinRK
974d45343e
allow kernel_name to be undefined in requests
...
fallback to KM.default_kernel_name in that case
2014-09-27 15:16:42 -07:00
Thomas Kluyver
b2737e668e
Add tests and fix some issues
...
Tests taken from #6360
2014-09-05 10:16:37 -07:00
Thomas Kluyver
0e109ee4be
Correct comment
2014-09-05 09:40:02 -07:00
Thomas Kluyver
ca8dabf705
Fix 404 error when accessing nonexistant session
2014-09-04 15:13:59 -07:00
Thomas Kluyver
76b05b24af
Handle sessions where the kernel has been killed
2014-09-04 15:13:59 -07:00
MinRK
6cce477e07
rename notebooks service to contents service
...
minimal functional changes, committing because tests are passing.
2014-07-31 11:57:36 -07:00
Thomas Kluyver
806432072a
Add kernel name to sessions REST API
...
Also, some refactoring so that the relationship between session, kernels
and notebooks is managed in the SessionManager, not in the HTTP
handlers.
2014-07-10 23:50:00 -05:00
Dale Jung
27a77dedbd
API: Allow NotebookManagers to control kernel startup dir. #5468
2014-03-29 17:39:15 -04:00
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.
2014-02-21 13:22:56 -08:00
MinRK
37cb0fbdee
remove websocket url
...
websockets should follow the kernel URL
(normal behavior is unchanged, only unused configurability is removed)
2014-02-20 22:54:36 -08:00
MinRK
a184724bdb
remove base_kernel_url
2014-02-11 21:26:10 -08:00
Thomas Kluyver
79c27df217
Specify encoding in remainining instances of io.open
2013-11-20 10:50:04 -08:00
Thomas Kluyver
93ee2d7173
Make sessions REST API test more robust.
...
Was seeing failures on Windows because it failed to delete the folder.
2013-10-29 09:15:57 -07:00
Thomas Kluyver
bce32ec03b
Fixes for notebook session manager
2013-10-29 09:15:56 -07:00
Thomas Kluyver
4a14ed7e22
Replace references to unicode and basestring
2013-10-29 09:15:54 -07:00
MinRK
922f458d6a
set kernel cwd to notebook's directory
...
closes #4424
2013-10-23 10:15:55 -07:00
MinRK
7ea311ad64
escape URLs in Location headers
2013-10-18 16:13:53 -07:00
Brian E. Granger
36aa39e3b7
Improving tests and setting of Location header.
2013-10-17 14:09:20 -07:00
MinRK
8b9bb04d12
review pass on Sessions API
2013-10-17 14:09:18 -07:00
Thomas Kluyver
18f88d020f
Add failing test for listing nonexistant directory
2013-10-17 14:09:18 -07:00
Thomas Kluyver
c18aaefbde
Fix sessionmanager test
2013-10-17 14:09:17 -07:00
Thomas Kluyver
e240f21ea1
Clean up sessions code from static analysis
2013-10-17 14:09:17 -07:00
Thomas Kluyver
693cc97905
Fix some HTTP status codes in sessions API
2013-10-17 14:09:17 -07:00
Thomas Kluyver
b3d2698c11
Fix session API tests
2013-10-17 14:09:17 -07:00
Thomas Kluyver
a02bd3d5e4
Improve Session REST API tests
2013-10-17 14:09:17 -07:00
Zachary Sailer
d3e456d9a1
add tests to notebooks api
...
- check for correct status codes
- check headers location
- fix COPY api
2013-10-17 14:09:12 -07:00
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
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
Zachary Sailer
27680dacb2
Code review changes.
...
Fixed handler issues and api tests from code review
from @minrk and @carreau.
2013-10-17 14:09:11 -07:00
Zachary Sailer
04c6a3cfac
refactoring of nbmanager and filenbmanager
...
major clean up of the two managers. We make sure to follow
the standard models described in IPEP 16
2013-10-17 14:09:10 -07:00
Zachary Sailer
050a3098a8
review fixes on tests, add extra kernel api test
2013-10-17 14:09:10 -07:00
Zachary Sailer
e9ac1c2d37
add tests for session api
2013-10-17 14:09:10 -07:00
Zachary Sailer
22e351ae3b
cleaning nb handlers, adding doc-strings/comments
2013-10-17 14:09:09 -07:00
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.
2013-10-17 14:09:09 -07:00
Zachary Sailer
8261ac2cb9
change standard money keys
2013-10-17 14:09:06 -07:00
Zachary Sailer
c7375e170f
rebase master- eliminate read-only
2013-10-17 14:09:06 -07:00
Zachary Sailer
a219abaeeb
standard model changes
2013-10-17 14:09:06 -07:00
Zachary Sailer
5af83cd705
redirect url after notebook rename
2013-10-17 14:09:05 -07:00
Zachary Sailer
fd282698bc
removing debug logs
2013-10-17 14:09:05 -07:00
Zachary Sailer
ece92127d3
Add 'patch' to session & notebook, rename working
2013-10-17 14:07:51 -07:00
Zachary Sailer
e4a7b724a6
fixed shutdown button refresh on dashboard
2013-10-17 14:07:51 -07:00