Construct a new session context.
Private _busyPrivate _changeChange the kernel.
Private _connectionPrivate _dialogPrivate _displayDisplay kernel error
Private _disposedPrivate _handleHandle a new session object.
Private _handleHandle an error in session startup.
Private _initPrivate _initPrivate _initializingPrivate _iopubPrivate _isPrivate _isPrivate _isPrivate _isPrivate _kernelPrivate _kernelPrivate _namePrivate _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 _onHandle a session termination.
Private _onHandle a change to the session status.
Private _onHandle an unhandled message.
Private _pathPrivate _pendingPrivate _pendingPrivate _pendingPrivate _preferencePrivate _prevPrivate _propertyPrivate _readyPrivate _sessionPrivate _sessionPrivate _setPrivate _shutdownShut down the current session.
Private _startStart the session if necessary.
Whether to ask the user to pick a kernel.
Private _statusPrivate _transPrivate _typePrivate _unhandledReadonly 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 ending 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.
Change 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.
Generated using TypeDoc
The default implementation for a session context object.