Nathaniel Nicandro
59c2e88ae6
jupyter-api-content-path: Drop local drive letter on Windows
2019-07-24 16:59:04 -05:00
Nathaniel Nicandro
0e34e73cae
jupyter-api-request: Don't reset auth state on an unauthorized request
2019-07-24 16:59:04 -05:00
Nathaniel Nicandro
248dc34117
Define jupyter-api-request-(headers|method|data)
...
So as to make it easier to transition away from `url-retrieve` if necessary in
the future.
2019-07-24 16:59:04 -05:00
Nathaniel Nicandro
e35981d147
jupyter-rest-api.el: Refactor login and authentication
2019-07-24 16:59:04 -05:00
Nathaniel Nicandro
a4aaa7d1db
jupyter-api-request: Refactor
...
* jupyter-rest-api.el (jupyter-api-url): Remove.
(jupyter-api--request): Remove. Work moved into `jupyter-api-request`.
(jupyter-api--url-request): Rename to `jupyter-api-url-request`.
Update all callers.
(jupyter-api-add-websocket-headers)
(jupyter-api-construct-endpoint): New functions.
(jupyter-api-request): Use them.
Don't assume "api" prefixes endpoint, update all callers.
(jupyter-api-get-file-model)
(jupyter-api-get-kernel-ws):
Update to account for how query parameters are
passed in `jupyter-api-request`.
* jupyter-server-test: Update tests for changes to `jupyter-api-request`.
(jupyter-api-add-websocket-headers)
(jupyter-api-construct-endpoint): New tests.
squash! jupyter-api-request: Refactor
2019-07-24 16:59:04 -05:00
Nathaniel Nicandro
e53973095c
jupyter-api-parse-response: Handle url-max-redirects
error
2019-07-24 16:59:04 -05:00
Nathaniel Nicandro
bf6e9014f3
Use filename component of url when retrieving cookies
2019-07-24 16:59:04 -05:00
Nathaniel Nicandro
900016d398
Include session ID when connecting websockets
2019-07-24 16:59:04 -05:00
Nathaniel Nicandro
5bd164c224
Error when trying to read a notebook through a server
...
We can't do much with a JSON representation of a notebook right now.
2019-07-24 16:59:04 -05:00
Nathaniel Nicandro
9241296b45
jupyter-api-request: Ask for authorization on next request after an un-authorized one
...
What is a better solution?
2019-07-24 16:59:04 -05:00
Nathaniel Nicandro
4a87d35f76
Jupyter notebook contents API integration with TRAMP
2019-07-24 16:59:04 -05:00
Nathaniel Nicandro
67831c08fa
Support Jupyter kernel servers
...
* jupyter-client.el (jupyter-initialize-connection): Elevate NOTE to FIXME.
(jupyter-kernel-info): Extend timeout.
* jupyter-kernel-manager.el (jupyter-shutdown-kernel):
(jupyter-interrupt-kernel): Allow any number of arguments.
* jupyter-kernelspec.el (jupyter-find-kernelspecs): Optionally allow specs.
* jupyter-messages.el (jupyter-encode-raw-message): New function.
* jupyter-rest-api.el (jupyter-api-auth-headers): New function.
* jupyter-server-ioloop.el: New file.
* jupyter-server.el: New file.
* test/jupyter-test.el (jupyter-server):
(jupyter-server-kernel-manager):
(jupyter-server-start-new-kernel): New tests.
2019-07-24 16:59:04 -05:00
Nathaniel Nicandro
9df340bd0f
Add REST API
...
* jupyter-rest-api.el: New file.
* test/jupyter-test.el (jupyter-rest-api):
(jupyter-api--copy-cookies, jupyter-api--password-login):
(jupyter-api-kernel-ws): New tests.
* test/test-helper.el (jupyter-test-rest-api): New macro.
2019-07-24 16:59:04 -05:00