The kernel anyMessage signal, proxied from the current kernel.
The kernel connectionStatusChanged signal, proxied from the current kernel.
ReadonlydisposedA signal emitted when the object is disposed.
ReadonlyidUnique id of the session.
The kernel iopubMessage signal, proxied from the current kernel.
ReadonlyisReadonlykernelA signal emitted when the kernel changes.
ReadonlymodelThe model associated with the session.
ReadonlynameThe current name associated with the session.
ReadonlypathThe current path associated with the session.
The kernel pendingInput signal, proxied from the current kernel.
ReadonlypropertyA signal emitted when a session property changes.
ReadonlyserverThe server settings of the session.
The kernel statusChanged signal, proxied from the current kernel.
ReadonlytypeThe type of the session.
The kernel unhandledMessage signal, proxied from the current kernel.
Change the kernel.
A promise that resolves with the new kernel model.
This shuts down the existing kernel and creates a new kernel, keeping the existing session ID and path. The session assumes it owns the kernel.
To start now kernel, pass an empty dictionary.
Dispose of the resources held by the object.
If the object's dispose method is called more than once, all
calls made after the first will be a no-op.
It is undefined behavior to use any functionality of the object after it has been disposed unless otherwise explicitly noted.
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.
Interface of a session object.
A session object represents a live connection to a session kernel.
This represents a persistent kernel connection with a particular key, that persists across changing kernels and kernels getting terminated. As such, a number of signals are proxied from the current kernel for convenience.
The kernel is owned by the session, in that the session creates the kernel and manages its lifecycle.