Creates a new LocalKernelClient instance.
Kernel information including Python path and kernel spec.
OptionaldocumentUri: UriOptional document URI for setting kernel working directory.
Releases all kernel resources by killing the process via SIGTERM and closing ZMQ sockets, bypassing Jupyter shutdown API.
Get the underlying kernel connection.
The JupyterLab kernel connection instance, or undefined if not started.
Get native kernel information (Python path, kernel spec, etc.).
Native kernel information.
Restarts the kernel by killing the current process and starting a new one. Skips Jupyter shutdown API and uses direct SIGTERM since local kernels communicate via ZMQ rather than through a Jupyter server.
Client for local Python kernels using direct ZMQ communication. Works with environments that only have ipykernel installed (no jupyter-server needed).