Min RK
e4e1d47203
Merge pull request #6694 from takluyver/config-rest-api
...
Add REST API for retrieving, storing and updating config
11 years ago
Thomas Kluyver
0f44eced72
Put frontend config files in profile_foo/nbconfig/ subdir
11 years ago
Min RK
da832ef59f
split ContentsManager.new, add ContentsManager.new_untitled
11 years ago
Min RK
39041a9f03
address review in contents service
...
- various docstrings, comments clarified and updated
- misc typos
- fix and test creating an untitled directory via POST
- only define `message` if there's something to say
11 years ago
Min RK
74c897cc0b
unicode!
11 years ago
Min RK
bc4f0b32bb
rename ContentsManager.create_file->new
...
consistent with js API
11 years ago
Min RK
62dedf921b
remove notebook['name'] from sessions
11 years ago
Min RK
b6c4baa2fb
remove copy via PUT
...
only copy via POST to directories
11 years ago
MinRK
3ada0c2c27
Remove separate 'path', 'name' in Contents API
...
- path is full path (including name)
- name is only used for read-only convenience, and plays no role in any API
- remove 'untitled upload' (POST with content and no path)
11 years ago
Thomas Kluyver
ae6ae8f7b0
Return updated config from PATCH requests
11 years ago
Thomas Kluyver
c26b0f6961
Fix writing JSON on Python 2
11 years ago
Thomas Kluyver
425d5a1c02
Apply JSON config updates recursively
11 years ago
Thomas Kluyver
6786f86c63
Fix docstring, validate JSON on PUT
11 years ago
Thomas Kluyver
a76a546627
Add REST API for retrieving, storing and updating config
11 years ago
Thomas Kluyver
963921c4ff
Merge pull request #6832 from minrk/request-only-once
...
actually send only one kernel_info request
11 years ago
Min RK
525f6a7561
fix backward `f, nb` args for nbformat.write
11 years ago
MinRK
7cf53c998c
restore ability to sign v3 notebooks
11 years ago
MinRK
af735018f3
don't use nbformat.current in IPython.html
...
use top-level nbformat.read/write, v4 directly for compose
11 years ago
MinRK
12f94ae2a2
use from_dict for dict->notebook
...
not confusing to_notebook_json
11 years ago
MinRK
dd95b1ef5f
remove heading cells in v4
11 years ago
MinRK
07079095a8
update html/js to nbformat 4
11 years ago
Min RK
3e82ea8319
actually send only one kernel_info request
...
store the Future for the initial request,
allowing subsequent requests to wait on the same pending reply.
Previously, any incoming requests that arrived while waiting for the first reply would send their own request.
11 years ago
Min RK
e329a79bc8
language is removed from kernel specs
...
don't use it when testing kernel spec API
11 years ago
Min RK
a2575af6a7
log kernel specs that fail to load
11 years ago
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
Matthias Bussonnier
b2a0798fdf
Merge pull request #6598 from minrk/nbformat-backport
...
nbformat validation
11 years ago
Matthias Bussonnier
7d7b85a043
Merge pull request #6649 from minrk/302-notebooks
...
redirect /api/notebooks to /api/contents
11 years ago
MinRK
b87fee048c
redirect /api/notebooks to /api/contents
...
eases 2.x-3.x transition for consumers such as emacs-ipython-notebook
11 years ago
MinRK
b2d946d44e
don't convert notebooks on upload
11 years ago
MinRK
8392c7ac9e
don't check_and_sign old notebooks on upload
11 years ago
MinRK
4ae05c729c
trust is stored in code_cell.metadata
...
not top-level code_cell
11 years ago
MinRK
ddd3aa2a5a
add dialogs for failed save/load
...
- failed validation doesn't prevent save/load,
but the user is now warned about it.
- there is now a warning dialog if fromJSON fails,
rather than the usual silent failure.
11 years ago
Jessica B. Hamrick
d606d53b4e
More informative error messages
11 years ago
Matthias Bussonnier
e808d23594
Merge pull request #6607 from minrk/cluster-load-remove
...
remove deleted profiles from cluster list
11 years ago
MinRK
ee1d9d65f3
stop using deprecated DelayedCallback
...
in favor of simpler IOLoop.add_timeout
It was added in pyzmq, but deprecated in pyzmq-13.
11 years ago
MinRK
1f231f7b5a
remove deleted profiles from cluster list
11 years ago
Jessica B. Hamrick
6bc5702398
More descriptive short message
11 years ago
Jessica B. Hamrick
46e40e5ea1
Return a proper JSON object
11 years ago
Jessica B. Hamrick
5e1e8a116c
Use 501 error code instead of 400
11 years ago
Jessica B. Hamrick
c4a89cd54d
Better user experience when kernel isn't found
11 years ago
Jessica B. Hamrick
cfc234dc89
Handle NoSuchKernel errors more gracefully
11 years ago
MinRK
974d45343e
allow kernel_name to be undefined in requests
...
fallback to KM.default_kernel_name in that case
11 years ago
MinRK
5bc118fb6c
handle system-wide kernelspecs
...
in html tets_kernelspecs_api, which can cause counts to be greater than 2
12 years ago