Feat/ipynb notebook support#1498
Open
KunojiLym wants to merge 5 commits into
Open
Conversation
Convert .ipynb files to markdown sidecars (code cells as fenced blocks, markdown cells verbatim, outputs stripped) and classify them as documents so notebook-heavy ML corpora are no longer silently dropped during scan. Fixes Graphify-Labs#1497 Co-authored-by: Cursor <cursoragent@cursor.com>
…th separately Restore convert_office_file inline and place ipynb_to_markdown/convert_notebook_file after it so the PR diff clearly adds notebook support without touching office conversion. Co-authored-by: Cursor <cursoragent@cursor.com>
Compare extracted sidecar payload before rewriting so re-running a notebook updates the .ipynb on disk without bumping sidecar mtime or triggering re-extraction. Cell source edits still refresh the sidecar. Co-authored-by: Cursor <cursoragent@cursor.com>
Updated the ipynb_to_markdown function to use the notebook's kernel language for fenced code blocks instead of a generic fallback. Improved handling of source code extraction from notebook cells.
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.
Convert .ipynb files to markdown sidecars (code cells as fenced blocks, markdown cells verbatim, outputs stripped) and classify them as documents so notebook-heavy ML corpora are no longer silently dropped during scan.
Fixes #1497
Co-authored-by: Cursor cursoragent@cursor.com