KernelAPIClient | @jupyterlab (original) (raw)
Implements
Index
Constructors
constructor
- new KernelAPIClient(
options?: { serverSettings?: ServerConnection.ISettings },
): KernelAPIClient KernelAPIClient
Returns
Properties
Readonly
serverSettings
Methods
getModel
A promise that resolves with the kernel model.
Notes
Uses the Jupyter Server API and validates the response model.
The promise is fulfilled on a valid response and rejected otherwise. If the kernel does not exist on the server, the promise is resolved with undefined
.
interrupt
A promise that resolves when the kernel is interrupted.
Notes
Uses the Jupyter Server API and validates the response model.
The promise is fulfilled on a valid response and rejected otherwise.
listRunning
A promise that resolves with the list of running kernel models.
Notes
Uses the Jupyter Server API and validates the response model.
The promise is fulfilled on a valid response and rejected otherwise.
restart
A promise that resolves when the kernel is restarted.
Notes
Uses the Jupyter Server API and validates the response model.
The promise is fulfilled on a valid response and rejected otherwise.
shutdown
A promise that resolves when the kernel is shut down.
Notes
Uses the Jupyter Server API and validates the response model.
The promise is fulfilled on a valid response and rejected otherwise.
startNew
- startNew(options?: Partial<Pick<Kernel.IModel, "name">>): Promise<Kernel.IModel>
Promise<Kernel.IModel>
Returns
A promise that resolves with the kernel model.
Notes
Uses the Jupyter Server API and validates the response model.
The promise is fulfilled on a valid response and rejected otherwise.