Connect to a running session.
The session instance.
If the session was already started via startNew
, the existing
Session object is used as the fulfillment value.
Otherwise, we attempt to connect to the existing session.
Find a session by id.
The id of the target session.
The server settings.
A promise that resolves with the session model.
If the session was already started via startNew
, the existing
Session object's information is used in the fulfillment value.
Otherwise, we attempt to find to the existing session. The promise is fulfilled when the session is found, otherwise the promise is rejected.
Find a session by path.
The path of the target session.
A promise that resolves with the session model.
If the session was already started via startNewSession
, the existing
Session object's info is used in the fulfillment value.
Otherwise, we attempt to find to the existing session using [listRunningSessions]. The promise is fulfilled when the session is found, otherwise the promise is rejected.
If the session was not already started and no options
are given,
the promise is rejected.
List the running sessions.
The server settings to use for the request.
A promise that resolves with the list of session models.
Uses the Jupyter Notebook API, and validates the response.
All client-side sessions are updated with current information.
The promise is fulfilled on a valid response and rejected otherwise.
Shut down a session by id.
The id of the target session.
The server settings.
A promise that resolves when the session is shut down.
Shut down all sessions.
A promise that resolves when all of the sessions are shut down.
Start a new session.
The options used to start the session.
A promise that resolves with the session instance.
Uses the Jupyter Notebook API, and validates the response.
A path must be provided. If a kernel id is given, it will connect to an existing kernel. If no kernel id or name is given, the server will start the default kernel type.
The promise is fulfilled on a valid response and rejected otherwise.
Wrap the result in an Session object. The promise is fulfilled when the session is created on the server, otherwise the promise is rejected.
Generated using TypeDoc
A namespace for session interfaces and factory functions.