Repository navigation
feat: Add native Jupyter notebook (.ipynb) support - #11414
Closed
pnpm-aftab wants to merge 16 commits into
Closed
pnpm-aftab wants to merge 16 commits into
pnpm-aftab wants to merge 16 commits into
Conversation
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+ This enables OpenCode to work with data science notebooks, making it useful for researchers and data scientists.
Contributor
|
The following comment was made by an LLM, it may be inaccurate: No duplicate PRs found |
The GitLab provider loader was missing the 'key' property in its return object, which is required by the Provider.Info interface. This was causing test failures in the GitLab Duo provider tests. The 'key' property should contain the API key (from auth or environment) and is used by the test framework to verify provider configuration.
Replace `any` types with proper TypeScript types and type guards: - Add CellOutput union type for better type safety - Replace `Record<string, any>` with `Record<string, unknown>` - Add proper type guard function for notebook validation - Extract constants for preview length defaults Co-Authored-By: Claude Opus 4.5 <[email protected]>
- Add missing Notebook type imports to add-notebook-cell and delete-notebook-cell - Fix assertExternalDirectory call in notebook-utils to pass minimal context - Remove redundant stats check that always returns true Co-Authored-By: Claude Opus 4.5 <[email protected]>
1 task done
Contributor
|
Closing this pull request because it has had no updates for more than 60 days. If you plan to continue working on it, feel free to reopen or open a new PR. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Add comprehensive support for editing Jupyter notebooks with 5 new tools:
read_notebook: Parse and display notebook structure and contentedit_notebook_cell: Edit specific cells while preserving metadataadd_notebook_cell: Insert new cells at any positiondelete_notebook_cell: Remove cells from notebookslist_notebook_cells: Quick overview of all cellsFeatures
Testing
test_notebook_tools.ts)D:/test_notebooks/Closes #11409