Get the version of the API for a given server.
The server configuration
An Observable containing the API version information
Creates a connection to a kernel with the given kernelID scoped under a particular sessionID.
The server configuration
The ID of the kernel to connect to
The ID of the session to connect as
A websocket Subject that can be subscribed to
Creates an AjaxObservable for creating content
The server configuration
The path to the content
The data to send in the server request
An Observable with the request response
Creates an AjaxObservable for getting a particular session's information.
The server configuration
Payload containing kernel name, kernel_id, session name, and path for creation of a new session.
An Observable with the request/response
Create a terminal session.
The server configuration
An Observable with the request response
Creates an AJAX request to connect to a given server. This function handles setting the authorization tokens on the request.
Details about the server to connect to.
The URL to connect to, not including the base URL
A set of options to pass to the AJAX request. We mimic jquery.ajax support of a cache option here.
A fully-configured AJAX request for connecting to the server.
Creates an AjaxObservable for creating a new checkpoint with the current state of a file. With the default Jupyter FileContentsManager, only one checkpoint is supported, so creating new checkpoints clobbers existing ones.
The server configuration
The content containing the checkpoint to be created
An Observable with the request response
Creates an AjaxObservable for deleting a checkpoint for a given file.
The server configuration
The content containing the checkpoint to be deleted
ID of checkpoint to be deleted
An Observable with the request response
Creates an AjaxObservable for destroying a particular session.
The server configuration
Unique id for session to be requested
An Observable with the request/response
Delete a running terminal session.
The server configuration
ID of the terminal to be fetched
An Observable with the request response
Creates a Websocket URL that can be used to initialize a connection with a kernel.
The server configuration
The ID of the kernel to connect to
The ID of the session to connect as
A string with the fully formed Websocket URL
Given a server configuration and a terminal ID, this function generates a Websocket URL that can be used
The server configuration
ID of the terminal to be fetched
A websocket URL for connecting to a terminal
Creates an AjaxObservable for getting content at a path
The server configuration
The content to fetch
type, format, content
An Observable with the request response
Creates an AjaxObservable for getting info about a kernel.
The server configuration
The id of the kernel to fetch
An Observable with the request response
Returns the specification of available kernels with the given kernel name.
The server configuration
The name of the kernel
An Observable with the request response
Creates an AjaxObservable for getting a particular session's information.
The server configuration
Universally unique id for session to be requested
An Observable with the request/response
Fetch a terminal session.
The server configuration.
ID of the terminal to be fetched.
An Observable with the request response
Creates an AjaxObservable for interrupting a kernel.
The server configuration
The id of the kernel to interrupt
An Observable with the request response
Creates an AjaxObservable for killing a kernel.
The server configuration
The id of the kernel to kill
An Observable with the request response
Creates an AjaxObservable for listing running kernels.
The server configuration
An Observable with the request response
Creates an AjaxObservable for listing available kernelspecs.
The server configuration
An Observable with the request response
Creates an AjaxObservable for listing available sessions.
The server configuration
An Observable with the request response
List all available running terminals.
The server configuration
An Observable with the request response
Creates an AjaxObservable for listing checkpoints for a given file.
The server configuration
The content containing checkpoints to be listed.
An Observable with the request response
Creates an AjaxObservable for publishing content to Bookstore
https://github.com/nteract/bookstore
The server configuration
The path to the content
The data to send in the server request
An Observable with the request response
Creates an AjaxObservable for removing content.
The server configuration
The path to the content
An Observable with the request response
Creates an AjaxObservable for restarting a kernel.
The server configuration
The id of the kernel to restart
An Observable with the request response
Creates an AjaxObservable for restoring a file to a specified checkpoint.
The server configuration
The content to restore to a previous checkpoint
ID of checkpoint to be used for restoration
An Observable with the request response
Creates an AjaxObservable for saving the file in the location specified by name and path in the model.
The server configuration
The path to the content
The data to send in the server request
An Observable with the request response
Creates an AjaxObservable for shutting down a notebook server.
The server configuration
An Observable with the request/response
Creates an AjaxObservable for starting a kernel.
The server configuration
The name of the kernel to start
The path to start the kernel in
An Observable with the request response
Creates an AjaxObservable for renaming a file.
The server configuration
The content to rename.
The data to send in the server request
An Observable with the request response
Creates an AjaxObservable for updating a session.
The server configuration
Unique identifier for session to be changed
Payload containing new kernel_name, new kernel_id, name of the new session, and the new path.
An Observable with the request/response
Generated using TypeDoc
rx-jupyter
This package is a ReactiveX wrapper around the Jupyter Server API. rx-jupyter can help you query local and remote Jupyter Server instances using Jupyter's Services APIs. Also, rx-jupyter integrates responses seamlessly with RxJS's functional tooling.
Roadmap
Primary coverage of the [Jupyter Server API]:
Optional coverage:
/api/spec.yaml
Installation
$ yarn add rx-jupyter
$ npm install --save rx-jupyter
Usage
The example below shows how we can use this package to get the version of the Jupyter server API our endpoint is running.
import jupyter from "rx-jupyter"; import { of } from "rxjs"; import { mergeMap, catchError } from "rxjs/operators";
const apiVersion = jupyter.apiVersion({ endpoint: "https://myjupyterendpoint.com", crossDomain: true }); apiVersion.pipe( mergeMap(apiVersion => of(apiVersionFulfilled({ apiVersion }))), catchError(error => of(apiVersionFailed({ error }))) );
Documentation
You can view the reference documentation for
rx-jupyter
in the package docs.Support
If you experience an issue while using this package or have a feature request, please file an issue on the issue board and add the
pkg:rx-jupyter
label.License
BSD-3-Clause