Skip to content

Examples

Runnable marimo notebooks are in the examples folder of the repository.

Each notebook wraps the same three widgets:

  • a counter
  • a form with a text, a number, a flag, and a list
  • Slider2D from wigglystuff

Run one

Clone the repository, then from its root:

uv sync
uv run marimo edit examples/persisted/files.py

Persisted

Notebook Where the state lives
persisted/files.py JSON files, with the built-in JsonFileStore
persisted/query_params.py The URL, with a store written in the notebook
persisted/sqlite.py A SQLite database, with a store written in the notebook

The Persisted example notebook

Trrackable

Notebook Where the history lives
trrackable/files.py JSON files, with the built-in JsonFileStore
trrackable/sqlite.py A SQLite database, with a store written in the notebook

The Trrackable example notebook