ipynb_extract_cells
Extract matching cells from multiple Jupyter notebooks into a new notebook using regex pattern and cell type filters, enabling targeted reuse of notebook content.
Instructions
Extract matching cells from multiple Jupyter Notebooks (.ipynb) into a new notebook.
Args: output_ipynb_filepath: Path for output notebook (absolute path preferred) input_ipynb_filepaths: List of source notebook paths (absolute paths preferred) pattern: Optional regex pattern to match cell_type: Optional cell type filter
Returns: Dict with 'success', 'cells_extracted', 'source_notebooks' or 'error' key
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pattern | No | ||
| cell_type | No | ||
| input_ipynb_filepaths | Yes | ||
| output_ipynb_filepath | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||