Skip to content

Add cell_refs to find sigil references in a notebook cell - #42

Merged
jph00 merged 1 commit into
mainfrom
pr/add-cell-refs-to-find-sigil-references-in-a
Sep 21, 2026
Merged

jph00 merged 1 commit into
mainfrom
pr/add-cell-refs-to-find-sigil-references-in-a

Conversation

@jph00

@jph00 jph00 commented Sep 21, 2026

Copy link
Copy Markdown
Contributor

cell_refs(cell) takes an nbformat cell as a serde_json::Value and returns CellRefs { vars, cmds, tools }. vars and cmds hold the $`expr` and !`cmd` references in a prompt cell's source. tools holds the &`name` references in prompt and Markdown sources, and in the text/markdown outputs of other cells. The function is Rust-only. Rustygate uses it for the cells API's refs=true. See "Design notes" in DEV.md.

@jph00 jph00 added the enhancement New feature or request label Sep 21, 2026
@jph00
jph00 merged commit eb12cfb into main Sep 21, 2026
@jph00
jph00 deleted the pr/add-cell-refs-to-find-sigil-references-in-a branch September 21, 2026 07:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant