jupyter_insert_cell
Insert a new code or markdown cell at a specific position in a Jupyter notebook, enabling precise control over notebook structure and content.
Instructions
Insert a new cell at a specific position in the notebook.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| notebook_path | Yes | Path to the notebook | |
| cell_index | Yes | Position to insert (0-based, cells after this shift down) | |
| source | Yes | Cell content (code or markdown) | |
| cell_type | No | Type of cell - 'code' or 'markdown' (default: code) | code |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |