notebook_edit_cell
Edit a Jupyter notebook cell by replacing its source code or markdown text. Optionally create a timestamped backup before the change.
Instructions
Replace the source of a cell.
A timestamped .checkpoint_*.ipynb backup is written before the change unless checkpoint=false.
Args: notebook_path: Path to the .ipynb file, relative to the workspace root. cell_index: Zero-based index of the cell to edit. source: New source code or markdown text. checkpoint: Write a backup before editing (default: true).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| source | Yes | ||
| cell_index | Yes | ||
| checkpoint | No | ||
| notebook_path | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |