Changelog¶
trrack and trrack-widget share one version number. The format follows
Keep a Changelog.
Unreleased¶
0.1.1 - 2026-11-24¶
Added¶
Trrackabletakesbuttonsandgraphto show or hide the row of buttons and the history graph. Set either one later, such astracked.graph = False.- The History button shows and hides the graph.
- Drag the left edge of the history graph to resize it. The lock button turns resizing off.
PersistedandTrrackablerun in the browser on Pyodide, such as in a marimo WASM notebook.
Changed¶
- In a narrow notebook, the controls move below the widget.
- With
debounce_ms,undo(),redo(), andgo_to()record a change that waits for the debounce before they move. Before, they dropped it. - A subclass of
PersistedorTrrackablereplaces its parent on the same widget, so one change is recorded once.
Fixed¶
close()is safe to call more than once, and a new wrapper works on a widget whose wrapper you closed.- With
debounce_ms,save()and the save at interpreter exit include a change that waits for the debounce.
0.1.0 - 2026-11-23¶
The first release after two alphas, 0.0.1a1 and 0.0.1a2.
Added¶
ProvenanceGraphintrrackkeeps every state as a node in a tree. It supportscommit,undo,redo,go_to, andrelabel. A commit afterundostarts a new branch.ProvenanceGraph.to_dictandProvenanceGraph.from_dictturn a graph into a JSON-compatible dict and back.Persistedintrrack-widgetsaves the state of an anywidget widget and restores it when the widget loads again. It hasstate,save,reset, andclose.Trrackablerecords each change to an anywidget widget as a node in a branching history. It hasundo,redo,go_to, andlabel.Trrackabletakesdebounce_msto record a burst of changes as one node,traitsto record some traits only, andlabel_formatterto write node labels.TrrackableandPersistedtake astoreto keep their data between sessions.Trrackablecan open a store thatPersistedsaved.Storeis the protocol for a store: any object withsaveandloadmethods.JsonFileStorekeeps data in a JSON file and writes it atomically.to_stateandfrom_statehelp a store keep plain values in its own shape, such as one URL parameter per value.trrack_widgetexportsJsonFileStore,Store,to_state, andfrom_state, so one import covers the common case.- A save that fails shows its error under the widget. The widget keeps working.
- A saved value that the widget rejects is skipped. A message under the widget names the trait.