ipynb_replace_cells_batch
Replace multiple cells in a Jupyter Notebook at once by providing cell indices and new content in a single batch operation.
Instructions
Replace multiple cells in one operation in a Jupyter Notebook (.ipynb).
Args: ipynb_filepath: Path to Jupyter Notebook (.ipynb) file (absolute path preferred) replacements: List of dicts with 'cell_index' and 'content' keys (provide content as raw strings, no additional escaping needed)
Returns: Dict with 'success' and 'cells_modified' or 'error' key
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| replacements | Yes | ||
| ipynb_filepath | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||