The kernel anyMessage signal, proxied from the current kernel.
The kernel connectionStatusChanged signal, proxied from the current kernel.
Readonly
disposedA signal emitted when the object is disposed.
Readonly
idUnique id of the session.
The kernel iopubMessage signal, proxied from the current kernel.
Readonly
isReadonly
kernelThe kernel.
This is a read-only property, and can be altered by [changeKernel].
A number of kernel signals are proxied through the session from whatever the current kernel is for convenience.
A signal emitted when the kernel changes.
Readonly
modelThe model associated with the session.
Readonly
nameThe current name associated with the session.
Readonly
pathThe current path associated with the session.
The kernel pendingInput signal, proxied from the current kernel.
Readonly
propertyA signal emitted when a session property changes.
Readonly
serverThe server settings of the session.
The kernel statusChanged signal, proxied from the current kernel.
Readonly
typeThe 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.