The workspace lists the local modules notebooks import (sca ls reports them
too) and opens one in a module view: autosaved source plus its dataclass
fields (and commented constants) as controls written into the file. A change,
from the editor or on disk, reloads the module in the kernel and reruns the
notebook; used notebooks are rerun from their files. Number boxes keep the
typed text until it is committed.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Picking in the viewport writes a selection cell (ql selectors from the picked
geometry, selected_<kind>[_<i>] and selected_item) and saves a snapshot
(.sca-editor/snapshot.json + viewport.png, sca snapshot) for coding agents.
The viewport gets a ground grid and an axis gizmo in a CAD (Z up) frame.
Cells fold to their step name, run everything above, autosave, and are
deleted with a trash button; the inspector shows a JSON tree; the chrome is
black and white with square 2px rules. Opening a notebook clears the model at
once. ql.vertices() now resolves through solids and faces.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
The editor kernel runs scratch cells the notebook does not contain; the
executor raised KeyError on them. params.commit_value writes a parameter's
value into the cell source, keeping the rest of the line.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Parameters are the top-level literals or scad.var of a '# ---- params ----'
cell, with an optional trailing '# ui: slider(min, max, ...)' comment for the
control. The editor kernel applies values an editor saved (params.json in the
notebook state dir) as the defining cell finishes; headless runs take only
explicit overrides. live_package/publish_live project the product from a
running marimo kernel. sca ls / sca params report workspaces and notebooks
from the files alone, with no change to existing examples.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>