Construct a new client session.
The session manager used by the session.
A signal emitted for iopub kernel messages.
Test whether the context is disposed.
Whether the session is ready.
The current kernel of the session.
A signal emitted when the kernel changes.
The display name of the current kernel.
The kernel preference of the session.
The kernel preference of the session.
The current name of the session.
The current path of the session.
A signal emitted when a session property changes.
A promise that is fulfilled when the session is ready.
The current status of the session.
A signal emitted when the status changes.
A signal emitted when the session is shut down.
The type of the client session.
A signal emitted for an unhandled kernel message.
Change the kernel.
Handle a new session object.
Handle an error in session startup.
Handle an iopub message.
Handle a change to the kernel.
Handle a change to a session property.
Handle a change to the session status.
Handle a session termination.
Handle an unhandled message.
Select a kernel.
Start the session if necessary.
Start a session and set up its signals.
Change the current kernel associated with the document.
Dispose of the resources held by the context.
Initialize the session.
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 session.
A promise that resolves with whether the kernel has restarted.
If there is a running kernel, present a dialog.
If there is no kernel, we start a kernel with the last run
kernel name and resolves with true
.
Select a kernel for the session.
Change the session name.
Change the session path.
The new session path.
A promise that resolves when the session has renamed.
This uses the Jupyter REST API, and the response is validated. The promise is fulfilled on a valid response and rejected otherwise.
Change the session type.
Kill the kernel and shutdown the session.
A promise that resolves when the session is shut down.
Get the default kernel name given select options.
Populate a kernel dropdown list.
The node to populate.
The options used to populate the kernels.
Populates the list with separated sections:
Restart a kernel if the user accepts the risk.
Returns a promise resolving with whether the kernel was restarted.
Generated using TypeDoc
The default implementation of client session object. A namespace for
ClientSession
statics.