Skip to content

Use host-reported parents for notebook dependency graphs - #43

Merged
manzt merged 1 commit into
marimo-0.26/host-protocolfrom
marimo-0.26/cell-parents
Nov 25, 2026
Merged

manzt merged 1 commit into
marimo-0.26/host-protocolfrom
marimo-0.26/cell-parents

Conversation

@manzt

@manzt manzt commented Nov 25, 2026 •

Copy link
Copy Markdown
Member

Marimo 0.26.0 can report the direct parents of each cell. Matching definitions to references can miss a dependency without a shared name, or draw an edge the host has explicitly ruled out.

Use the host’s parent IDs in the graph explainer and minimap. An empty parent list means the cell has no dependencies. When a host omits the list for a cell, Moku still infers its parents from definitions and references. The minimap also refreshes its connections and highlighted variables when only the parent IDs change.

@manzt
manzt added this pull request to stack #44 November 25, 2026 14:39
@manzt manzt changed the title marimo 0.26/cell parents Use host-reported parents for notebook dependency graphs Nov 25, 2026
The host can report a dependency without a shared name or rule out one that name matching would infer. Use its parent IDs in both graph views, and infer edges from definitions and references only for cells that omit their parents.

Update the minimap’s connections and highlighted variables when the host changes just those edges.
@manzt
manzt force-pushed the marimo-0.26/cell-parents branch from 632a971 to a6f1a91 Compare November 25, 2026 14:44
@manzt
manzt merged commit cad45e2 into main Nov 25, 2026
4 of 6 checks passed
@manzt
manzt deleted the marimo-0.26/cell-parents branch November 25, 2026 14:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant