Construct a new session context.
Change the kernel.
Handle a new session object.
Handle an error in session startup.
Handle a change to the session status.
Handle an iopub message.
Handle a change to the kernel.
Handle a change to a session property.
Handle a session termination.
Handle a change to the session status.
Handle an unhandled message.
Shut down the current session.
Start the session if necessary.
The session manager used by the session.
The kernel spec manager
A signal emitted when the kernel status changes, proxied from the kernel.
A signal emitted when the poll is disposed.
A signal emitted for iopub kernel messages, proxied from the kernel.
Test whether the context is disposed.
Whether the context is ready.
Whether the context is restarting.
Whether the context is terminating.
A signal emitted when the kernel connection changes, proxied from the session connection.
The display name of the current kernel, or a sensible alternative.
This is a convenience function to have a consistent sensible name for the kernel.
A sensible status to display
This combines the status and connection status into a single status for the user.
The kernel preference of this client session.
This is used when selecting a new kernel, and should reflect the sort of kernel the activity prefers.
The kernel preference of this client session.
This is used when selecting a new kernel, and should reflect the sort of kernel the activity prefers.
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.
The name of the previously started kernel.
A signal emitted when a session property changes, proxied from the current session.
A promise that is fulfilled when the context is ready.
The current session connection.
A signal emitted when the session connection changes.
A signal emitted when the kernel status changes, proxied from the kernel.
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 kernel.
Inner initialize function that doesn't handle promises. This makes it easier to consolidate promise handling logic.
Change the current kernel associated with the session.
Dispose of the resources held by the context.
Initialize the session context
A promise that resolves with whether to ask the user to select a kernel.
If a server session exists on the current path, we will connect to it.
If preferences include disabling canStart
or shouldStart
, no
server session will be started.
If a kernel id is given, we attempt to start a session with that id.
If a default kernel is available, we connect to it.
Otherwise we ask the user to select a kernel.
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
The default implementation for a session context object.