notebook_restart_kernel
Reset a Jupyter notebook's kernel to clear all variables and imports without closing the kernel process, enabling a clean state for subsequent cell executions.
Instructions
Restart the kernel for a notebook, clearing all variables and imports.
The kernel process stays alive — only its state is reset, so subsequent run_cell calls start from a clean slate without the startup overhead of a fresh kernel.
Args: notebook_path: Path to the .ipynb file whose kernel should be restarted.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| notebook_path | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |