Construct a new session.
The server settings of the session.
A signal emitted for any kernel message.
Note: The behavior is undefined if the message is modified during message handling. As such, it should be treated as read-only.
Get the session id.
A signal emitted for a kernel messages.
Test whether the session has been disposed.
Get the session kernel object.
This is a read-only property, and can be altered by [changeKernel].
A signal emitted when the kernel changes.
Get the model associated with the session.
Get the session name.
Get the session path.
A signal emitted when a session property changes.
The current status of the session.
This is a delegate to the kernel status.
A signal emitted when the kernel status changes.
A signal emitted when the session is shut down.
Get the session type.
A signal emitted for an unhandled kernel message.
Handle a change to the model.
Send a PATCH to the server, updating the session path or the kernel.
Change the kernel.
Clone the current session with a new clientId.
Dispose of the resources held by the session.
Handle any kernel messages.
Handle iopub kernel messages.
Change the session name.
Change the session path.
The new session path.
A promise that resolves when the session has renamed.
This uses the Jupyter REST API, and the response is validated. The promise is fulfilled on a valid response and rejected otherwise.
Change the session type.
Create a new kernel connection and hook up to its events.
This method is not meant to be subclassed.
Kill the kernel and shutdown the session.
Uses the Jupyter Notebook API, and validates the response. Disposes of the session and emits a [sessionDied] signal on success.
Update the session based on a session model from the server.
Shut down a session by id.
Shut down all sessions.
The server settings to use.
A promise that resolves when all the sessions are shut down.
Generated using TypeDoc
Session object for accessing the session REST api. The session should be used to start kernels and then shut them down -- for all other operations, the kernel object should be used. The namespace for
DefaultSession
statics.