kernel_start
Starts a new Jupyter kernel from scratch, optionally specifying the Python interpreter path to enforce a specific environment or guarantee a clean slate.
Instructions
Shut down any existing kernel for this notebook and start a completely fresh one. Unlike kernel_restart, this always creates a new kernel process from scratch — even if the Python interpreter is unchanged. Use this at session start to enforce a specific Python environment, or to guarantee a clean slate.
python_path: which Python to use for the new kernel.
"" or omitted: uses the server's own Python (sys.executable)
Absolute path: e.g. "/home/user/project/.venv/bin/python"
Name on PATH: e.g. "python3.11" Not supported when connected to a remote server (use remote_connect to select the server; the remote server controls the interpreter).
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"name": "<name>"
},
"name": "kernel_start"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | ||
| python_path | No |