Commit graph

5 commits

Author SHA1 Message Date
Gergo Magyar
5bf6dd8d99 feat: cover real Jupyter notebook shapes in Python extraction
Index Sage and Pyodide kernels, keep later cells when one cell is broken, and link %run of a local module without executing a kernel.
2026-09-25 18:20:12 +00:00
Gergo Magyar
5535df854d fix(review): keep notebook JSON coordinates and extract once
Review findings: last-wins cells arrays, source-string line anchors, skip cells without source, reuse worker extraction for scope captures, and fail closed in embeddings.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-09-25 16:31:16 +00:00
Gergo Magyar
fc4b48d1f1 fix(review): locate notebook sources independent of JSON key order
Walk the cells array as objects so source-before-cell_type notebooks map
correctly, remap assignment lines, and cap the extract cache.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-09-25 15:44:45 +00:00
Gergo Magyar
020bf6e4dc fix(review): keep notebook graph lines aligned with JSON
Join cells so tree-sitter rows match segment maps, remap CFG and
scope captures from 1-based extract lines, and highlight .ipynb as JSON.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-09-25 15:27:50 +00:00
Gergo Magyar
d2acefe016 feat: index Jupyter notebooks as Python via code-cell extraction
Extract .ipynb code cells in-process (Vue-style) and parse them with the
existing Python provider so notebook functions and imports join the graph
without executing kernels. Fixes #3371.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-09-25 14:49:09 +00:00