Private_Signal emitted for any message (sent or received).
Private_The client session ID.
Private_The current connection status of the kernel.
Private_Signal emitted when connection status changes.
Private_Signal emitted when the kernel is disposed.
Private_Whether this connection should handle comm (widget) messages.
Private_The unique identifier of the kernel.
Private_Promise that resolves when kernel info is received.
Private_The cached kernel info reply.
Private_Signal emitted when an iopub message is received.
Private_Whether the kernel connection has been disposed.
Private_The kernel model containing kernel specifications.
Private_The name of the kernel.
Private_Signal emitted when pending input state changes.
Private_Signal emitted when kernel properties change.
Private_Function to resolve the kernel info promise.
Private_Server settings for the kernel connection.
Private_The current execution status of the kernel.
Private_Signal emitted when kernel status changes.
Private_Signal emitted when an unhandled message is received.
Private_The username associated with the kernel.
Private_The WebSocket connection to the local kernel.
The current connection status of the kernel.
A signal emitted when the kernel connection status changes.
A signal emitted when the object is disposed.
The id of the server-side kernel.
A signal emitted after an iopub kernel message is handled.
The kernel model, for convenience.
The name of the server-side kernel.
A signal emitted when a kernel has pending inputs from the user.
The server settings for the kernel.
Get the kernel specification.
A promise that resolves to the kernel spec model.
The current status of the kernel.
A signal emitted when the kernel status changes.
The subshell ID, main shell has null.
Check if this kernel supports JEP 91 kernel subshells.
A signal emitted for unhandled non-iopub kernel messages that claimed to be responses for messages we sent using this kernel object.
The client username.
The client username.
Private_Handles incoming WebSocket messages and emits appropriate signals.
Dispose of the kernel connection and clean up resources.
Check if a comm with the given ID exists.
The comm ID to check.
Always returns false for local kernels.
Interrupt the kernel execution.
A resolved promise.
Reconnect to the kernel (no-op for local kernels).
A resolved promise.
Register a comm target (no-op for local kernels).
The name of the comm target.
The callback to invoke when a comm is opened.
Register a message hook for IOPub messages (no-op for local kernels).
The message ID to hook.
The hook function to register.
Remove a comm target (no-op for local kernels).
The name of the comm target.
The callback to remove.
Remove input guard from the kernel (no-op for local kernels).
Remove a message hook (no-op for local kernels).
The message ID to unhook.
The hook function to remove.
Request creation of a subshell (not supported for local kernels).
The subshell creation request content.
Optional_disposeOnDone: booleanWhether to dispose after completion.
Request deletion of a subshell (not supported for local kernels).
The subshell deletion request content.
Optional_disposeOnDone: booleanWhether to dispose after completion.
Execute code in the kernel.
The code execution request content.
OptionaldisposeOnDone: booleanWhether to dispose the future after completion.
Optionalmetadata: unknownOptional metadata to include with the request.
A shell future that will resolve with the execution reply.
Request command history (returns empty history).
The history request content.
A promise that resolves with an empty history reply.
Request kernel information.
A promise that resolves with the kernel info reply.
Request listing of subshells (not supported for local kernels).
The subshell list request content.
Optional_disposeOnDone: booleanWhether to dispose after completion.
Restart the kernel.
A resolved promise.
Send a control message to the kernel.
The control message to send.
Optional_expectReply: booleanWhether a reply is expected.
Optional_disposeOnDone: booleanWhether to dispose after completion.
A control future that will resolve with the reply.
Send a shell message to the kernel.
The shell message to send.
Optional_expectReply: booleanWhether a reply is expected.
Optional_disposeOnDone: booleanWhether to dispose after completion.
A shell future that will resolve with the reply.
Shutdown the kernel connection.
A resolved promise.
A custom KernelConnection that wraps a local kernel WebSocket. This bypasses the session management and provides a pre-connected kernel.