ipynb_delete_cells_batch
Delete multiple cells from a Jupyter Notebook by specifying their indices. Use to batch-remove unnecessary cells without a Jupyter server.
Instructions
Delete multiple cells by indices from a Jupyter Notebook (.ipynb).
Args: ipynb_filepath: Path to Jupyter Notebook (.ipynb) file (absolute path preferred) cell_indices: List of cell indices to delete (0-based indexing)
Returns: Dict with 'success', 'cells_deleted', 'new_cell_count' or 'error' key
Note: Deletions are processed in descending order to maintain index validity. Provide indices as they appear before any deletions occur.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cell_indices | Yes | ||
| ipynb_filepath | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||