ipynb_search_replace_all
Find and replace regex patterns across all cells in a Jupyter Notebook, with optional filtering by cell type.
Instructions
Search and replace across all cells in a Jupyter Notebook (.ipynb).
Args: ipynb_filepath: Path to Jupyter Notebook (.ipynb) file (absolute path preferred) pattern: Pattern to search for (regex) replacement: Replacement string cell_type: Optional filter by cell type
Returns: Dict with 'success' and 'replacements_made' or 'error' key
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pattern | Yes | ||
| cell_type | No | ||
| replacement | Yes | ||
| ipynb_filepath | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||