connect_notebook
Establish a connection to a Jupyter notebook and its kernel. Required as the initial step before executing any notebook operations.
Instructions
Connect to a notebook and corresponding kernel. It is the FIRST STEP before ANY subsequent operations.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | No | `connect`: connect to an existing notebook; `create`: create a new notebook (not exist) and connect; `reconnect`: reconnect to an existing notebook | connect |
| token | Yes | Jupyter authentication token | |
| server_url | Yes | Jupyter server URL (e.g., http://localhost:8888) | |
| notebook_name | Yes | Unique identifier, used to reference this notebook in subsequent operations | |
| notebook_path | Yes | Path to the notebook file relative to Jupyter server root (e.g., './analysis.ipynb') |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |