notebook_run_range
Execute a specific range of cells in a Jupyter notebook and retrieve their outputs, with configurable error handling and output saving.
Instructions
Execute cells from start to end (inclusive) and return all outputs.
Execution stops at the first error by default (stop_on_error=true).
Args: notebook_path: Path to the .ipynb file, relative to the workspace root. start: First cell index to run (inclusive). end: Last cell index to run (inclusive). kernel_name: Kernel to use (default: 'python3'). timeout: Per-cell timeout in seconds (default: 60). stop_on_error: Stop at first failing cell (default: true). save_outputs: Write outputs back to the .ipynb file (default: true).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| end | Yes | ||
| start | Yes | ||
| timeout | No | ||
| kernel_name | No | ||
| save_outputs | No | ||
| notebook_path | Yes | ||
| stop_on_error | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |