Readonly
connectionA signal emitted when the kernel connection status changes, proxied from the session connection.
Readonly
disposedA signal emitted when the object is disposed.
Readonly
hasWhether the kernel is "No Kernel" or not.
As the displayed name is translated, this can be used directly.
Readonly
iopubA signal emitted for a kernel messages, proxied from the session connection.
Readonly
isReadonly
isWhether the session context is ready.
Readonly
isWhether the session context is restarting.
Readonly
isWhether the session context is terminating.
Readonly
kernelA signal emitted when the kernel changes, proxied from the session connection.
Readonly
kernelThe 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.
Readonly
kernelA 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.
Readonly
kernelSignal emitted if the kernel preference changes.
Readonly
nameThe session name.
Typically .session.name
should be used. This attribute is useful if
there is no current session.
Readonly
pathThe session path.
Typically .session.path
should be used. This attribute is useful if
there is no current session.
Readonly
pendingA flag indicating if session is has pending input, proxied from the session connection.
Readonly
prevThe previous kernel name.
Readonly
propertyA signal emitted when a session property changes, proxied from the session connection.
Readonly
readyA promise that is fulfilled when the session context is ready.
The current session connection.
Readonly
sessionA signal emitted when the session connection changes.
Readonly
sessionThe session manager used by the session.
Readonly
specsThe kernel spec manager
Readonly
statusA signal emitted when the kernel status changes, proxied from the session connection.
Readonly
typeThe session type.
Typically .session.type
should be used. This attribute is useful if
there is no current session.
Readonly
unhandledA signal emitted for an unhandled kernel message, proxied from the session connection.
Change the kernel associated with the session.
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.
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.