A signal emitted when the kernel connection status changes, proxied from the session connection.
A signal emitted when the object is disposed.
Whether the kernel is "No Kernel" or not.
As the displayed name is translated, this can be used directly.
A signal emitted for a kernel messages, proxied from the session connection.
Whether the session context is ready.
Whether the session context is restarting.
Whether the session context is terminating.
A signal emitted when the kernel changes, proxied from the session connection.
The sensible display name for the kernel, or translated "No Kernel"
This is at this level since the underlying kernel connection does not have access to the kernel spec manager.
A sensible status to display
This combines the status and connection status into a single status for the user.
The kernel preference for starting new kernels.
The session name.
Typically .session.name
should be used. This attribute is useful if
there is no current session.
The session path.
Typically .session.path
should be used. This attribute is useful if
there is no current session.
A flag indicating if session is has pending input, proxied from the session connection.
The previous kernel name.
A signal emitted when a session property changes, proxied from the session connection.
A promise that is fulfilled when the session context is ready.
The current session connection.
A signal emitted when the session connection changes.
The session manager used by the session.
The kernel spec manager
A signal emitted when the kernel status changes, proxied from the session connection.
The session type.
Typically .session.type
should be used. This attribute is useful if
there is no current session.
A signal emitted for an unhandled kernel message, proxied from the session connection.
Change the kernel associated with the session.
The optional kernel model parameters to use for the new kernel.
A promise that resolves with the new kernel connection.
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.
Initialize the session context.
A promise that resolves with whether to ask the user to select a kernel.
This includes starting up an initial kernel if needed.
Restart the current Kernel.
A promise that resolves when the kernel is restarted.
Kill the kernel and shutdown the session.
A promise that resolves when the session is shut down.
Generated using TypeDoc
A context object to manage a widget's kernel session connection.
Notes
The current session connection is
.session
, the current session's kernel connection is.session.kernel
. For convenience, we proxy several kernel connection and session connection signals up to the session context so that you do not have to manage slots as sessions and kernels change. For example, to act on whatever the current kernel's iopubMessage signal is producing, connect to the session context.iopubMessage
signal.