Create a new kernel API client.
The options used to create the client.
Get a kernel model.
The id of the kernel of interest.
A promise that resolves with the kernel model.
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 kernel.
The id of the kernel to interrupt.
A promise that resolves when the kernel is interrupted.
Uses the Jupyter Server API and validates the response model.
The promise is fulfilled on a valid response and rejected otherwise.
Restart a kernel.
The id of the kernel to restart.
A promise that resolves when the kernel is restarted.
Uses the Jupyter Server API and validates the response model.
The promise is fulfilled on a valid response and rejected otherwise.
Shut down a kernel by id.
The id of the kernel to shut down.
A promise that resolves when the kernel is shut down.
Uses the Jupyter Server API and validates the response model.
The promise is fulfilled on a valid response and rejected otherwise.
Start a new kernel.
A promise that resolves with the kernel model.
Uses the Jupyter Server API and validates the response model.
The promise is fulfilled on a valid response and rejected otherwise.
The kernel API client.
Notes
Use this class to interact with the Jupyter Server Kernel API. This class adheres to the Jupyter Server API endpoints.