Construct a new session context.
Private
_busyPrivate
_connectionPrivate
_dialogPrivate
_disposedPrivate
_initPrivate
_initPrivate
_initializingPrivate
_iopubPrivate
_isPrivate
_isPrivate
_isPrivate
_isPrivate
_kernelPrivate
_kernelPrivate
_namePrivate
_pathPrivate
_pendingPrivate
_pendingPrivate
_pendingPrivate
_preferencePrivate
_prevPrivate
_propertyPrivate
_readyPrivate
_sessionPrivate
_sessionPrivate
_setPrivate
_statusPrivate
_transPrivate
_typePrivate
_unhandledOptional
Readonly
kernelThe kernel manager
Readonly
sessionThe session manager used by the session.
Readonly
specsThe kernel spec manager
Private
translatorA signal emitted when the kernel status changes, proxied from the kernel.
Whether the kernel is "No Kernel" or not.
As the displayed name is translated, this can be used directly.
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 for starting new kernels.
Signal emitted if the kernel preference changes.
The session name.
Typically .session.name
should be used. This attribute is useful if
there is no current session.
Protected
noGet the constant displayed name for "No Kernel"
The session path.
Typically .session.path
should be used. This attribute is useful if
there is no current session.
A flag indicating if the session has pending input, proxied from the kernel.
The name of the previously started kernel.
The current session connection.
A signal emitted when the session connection changes.
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.
Private
_changeChange the kernel.
Private
_displayPrivate
_handleHandle a new session object.
Private
_handleHandle an error in session startup.
Private
_onHandle a change to the session status.
Private
_onHandle an iopub message.
Private
_onHandle a change to the kernel.
Private
_onHandle a change to the pending input.
Private
_onHandle a change to a session property.
Private
_onPrivate
_onHandle a change to the session status.
Private
_onHandle an unhandled message.
Private
_shutdownPrivate
_startChange the current kernel associated with the session.
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.
The default implementation for a session context object.