use_notebook
Activate a Jupyter notebook for executing code cells and managing content within JupyterLab environments through the Model Context Protocol.
Instructions
Use a notebook and activate it for following cell operations. All cell operations will be performed on the currently activated notebook. Activate new notebook will deactivate the previously activated notebook. Reactivate previously activated notebook using same notebook_name and notebook_path.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| notebook_name | Yes | Unique identifier for the notebook | |
| notebook_path | Yes | Path to the notebook file, relative to the Jupyter server root (e.g. 'notebook.ipynb') | |
| mode | No | Notebook operation mode: 'connect' to connect to existing and activate it, 'create' to create new and activate it | connect |
| kernel_id | No | Specific kernel ID to use (will create new if skipped) |