[PR #11414] feat: Add native Jupyter notebook (.ipynb) support #13780

Open
opened 2026-02-16 18:18:36 -05:00 by yindo · 0 comments
Owner

Original Pull Request: https://github.com/anomalyco/opencode/pull/11414

State: open
Merged: No


Summary

Add comprehensive support for editing Jupyter notebooks with 5 new tools:

  • read_notebook: Parse and display notebook structure and content
  • edit_notebook_cell: Edit specific cells while preserving metadata
  • add_notebook_cell: Insert new cells at any position
  • delete_notebook_cell: Remove cells from notebooks
  • list_notebook_cells: Quick overview of all cells

Features

  • Full JSON structure validation and preservation
  • Supports code, markdown, and raw cell types
  • Maintains execution counts and outputs
  • Cell metadata and language info preserved
  • Compatible with Jupyter notebook format 4.x+

Testing

  • Created comprehensive test suite (test_notebook_tools.ts)
  • All 5 tools tested and verified working
  • Cross-validated with Python nbformat library
  • Test artifacts preserved in D:/test_notebooks/

Closes #11409

**Original Pull Request:** https://github.com/anomalyco/opencode/pull/11414 **State:** open **Merged:** No --- ## Summary Add comprehensive support for editing Jupyter notebooks with 5 new tools: - `read_notebook`: Parse and display notebook structure and content - `edit_notebook_cell`: Edit specific cells while preserving metadata - `add_notebook_cell`: Insert new cells at any position - `delete_notebook_cell`: Remove cells from notebooks - `list_notebook_cells`: Quick overview of all cells ## Features - Full JSON structure validation and preservation - Supports code, markdown, and raw cell types - Maintains execution counts and outputs - Cell metadata and language info preserved - Compatible with Jupyter notebook format 4.x+ ## Testing - Created comprehensive test suite (`test_notebook_tools.ts`) - All 5 tools tested and verified working - Cross-validated with Python nbformat library - Test artifacts preserved in `D:/test_notebooks/` Closes #11409
yindo added the pull-request label 2026-02-16 18:18:36 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#13780