technologies · difficulty ◆◆
marimo — reactive Python notebooks & apps
Write once, run as a notebook, a script, or a web app — always consistent.
Jupyter notebooks have a dirty secret: the output you're staring at may have nothing to do with the code. marimo was built to make that impossible.
AI-generated draft · reviewed and editedThis text was generated with AI as a first draft, then reviewed and edited by the author, who holds editorial responsibility for it.$ marimo- 0.23.9
- current version
- 12
- CLI commands
- 15
- example categories
- 20
- base dependencies
pyproject.toml
marimo --help
examples/
pyproject.toml
What it is
marimo is a reactive Python notebook that doubles as an app framework. Open a notebook and every cell that depends on a value automatically re-runs when that value changes — no manual "run all" ordering, no hidden state, no stale outputs. You build interactive dashboards and data apps by mixing Python with marimo.ui components and built-in reactive SQL.
Why it matters
Here is the problem marimo exists to kill: in a traditional notebook, cell output is a screenshot of what happened once, long ago. Edit cell one, and cell twelve still shows the old number until you remember to re-run it. marimo replaces that fragile top-to-bottom ritual with a reactive graph. Each cell is a node; changing an input recomputes exactly the dependent cells. The output on screen is, by construction, the truth.
How it fits your stack
marimo is installed in this environment at version 0.23.9 (the /home/kmail/marimo source checkout). It ships a CLI (edit, run, convert, export, tutorial, pair, new, recover), supports first-class SQL, AI assistance, and deployment as a read-only web app. You can also run a notebook as a plain Python script with arguments.
Example
$ marimo edit notebook.pyUpdate available 0.23.9 to 0.25.1
Run python -m pip install --upgrade marimo to upgrade.
Edit notebook.py in your browser
URL: http://localhost:2718?access_token=Xc1b_bDhm64YT-c3hCrppw
MCP servers: context7, marimo
Thanks for using marimo!edit opens the notebook in the browser editor. The URL carries a one-time access token so a local session stays private; the CLI prints it for you. New cells auto-connect to their inputs.
$ marimo run notebook.py
Running notebook.py
URL: http://localhost:2718
Thanks for using marimo!run serves the same notebook as a read-only, interactive web app - no Python server code to write, and the file on disk is unchanged.
$ marimo convert notebook.ipynbimport marimo
__generated_with = "0.23.9"
app = marimo.App()
@app.cell
def _():
import marimo as mo
return (mo,)
@app.cell(hide_code=True)convert turns a Jupyter notebook into a marimo .py file - and writes it to standard output, so redirect it to keep the result: marimo convert notebook.ipynb > notebook.py.
$ marimo export md notebook.py---
title: Notebook
marimo-version: 0.23.9
width: medium
---
```python {.marimo}
import marimo as mo
slider = mo.ui.slider(0, 100, value=50)
slider
```
```python {.marimo}
mo.md(f"Slider value: **{slider.value}**")
```export renders the notebook as Markdown, metadata and all. Note what the source turned out to be: each cell is a Python function, and the names a cell defines appear in its return statement.
Common flags
- edit
- create or edit a notebook (opens the browser editor)
- run
- run a notebook as a read-only web app (deployable)
- new
- create an empty notebook or scaffold from a template
- convert
- convert a Jupyter notebook or Markdown file into a marimo notebook
- export
- export a notebook to HTML, markdown, script, or app
- check
- check and format marimo files (like a linter/formatter)
- tutorial
- open a built-in tutorial notebook
- recover
- recover a notebook from a JSON session file
History
Origin
marimo was created by Akshay Agrawal and Myles Scolnick, co-founders of Marimo Inc. Akshay is a former Google Brain engineer who helped build TensorFlow, and a NeurIPS-published PhD from Stanford (vector embeddings and machine learning); Myles is a former Palantir and CloudKitchens engineer who led product and web platform teams. The first public commit landed on 14 August 2023. The name comes from the Japanese word for the marimo, the round green algae ball of Lake Akan in Hokkaido.
The reactive notebook idea
The core insight is borrowed from reactive UI programming (and the earlier Observable notebooks): instead of cells stored in a JSON document with hidden execution order, marimo stores cells as Python functions and derives the dependency graph at runtime. This makes output always consistent with code — a property traditional notebooks famously lack.
Growth & adoption
Since its public release, marimo has grown rapidly in the data-science and AI community, winning attention for being "git-friendly where Jupyter is not", gaining a strong open-source following, and positioning itself as an alternative to both Jupyter and dedicated dashboard frameworks like Streamlit and Dash. In October 2025 CoreWeave announced that it had acquired marimo, folding the notebook into the same developer-tools stable as Weights & Biases, and the project is a NumFOCUS-affiliated project. Version 0.23.9 - the version installed here - is a little behind the current release: the CLI itself reports "Update available 0.23.9 to 0.25.1".
Under the hood
The dependency graph
When you add a cell, marimo parses it and reads the names it assigns and references. It wires these into a graph — cell A feeds cell B feeds cell C. Because the graph is explicit, marimo can tell you when your notebook has an error before you run anything, and it can run only the cells that actually need recomputing. That is the whole magic trick, and it is why the output is always consistent.
Pure Python on disk
A marimo file is a real .py file: importable, diffable, greppable, and scriptable. Git can merge it. CI can test it. You can import a notebook like a module and call its functions. Compare that to the JSON cell-dump of a Jupyter .ipynb, which is opaque to every tool except Jupyter itself. This is what "git-friendly" actually buys you in practice.
Deployable as an app
The same notebook that is interactive in the editor becomes a read-only web app with marimo run. Because the UI elements (sliders, buttons, dataframes) are part of the notebook itself, you get a real dashboard without writing a separate server or a line of web frontend. Reactivity means the app updates live as users interact.
What a cell looks like
A marimo notebook is a Python module. Each cell becomes a function, and the names it uses and defines are that function's parameters and return values, which is the whole basis of the dependency graph:
@app.cell def _(): import marimo as mo slider = mo.ui.slider(0, 100, value=50) slider return mo, slider
@app.cell def _(mo, slider): mo.md(f"Slider value: **{slider.value}**") return
The second cell takes slider as an argument, so marimo knows it must re-run whenever the slider moves - no execution-order bookkeeping, and nothing to re-run by hand. The marimo export md transcript above is that same file rendered out; marimo run is that same file served as an app.
Fun facts
Pros & cons
pros
- + Stored as pure Python (.py) files — diff cleanly in git, importable, reusable
- + Reactivity runs exactly the dependent cells, so outputs never drift out of sync
- + Same notebook runs as an editor, a script, or a read-only web app
- + Batteries included: first-class SQL cells, AI assistance, interactive dataframe viewer
- + Reactive UI elements (sliders, buttons) are first-class citizens
cons
- − Younger and less mature than the Jupyter ecosystem — some niche extensions missing
- − Reactive execution is a different mental model; takes getting used to
- − Large/expensive notebooks need lazy/stale mode configured or they recompute eagerly
- − Very long-running jobs still fit a plain script better than an app
Takeaways
- 1Install it and run `marimo tutorial intro` to feel reactivity in 60 seconds
- 2Convert an existing .ipynb with `marimo convert` to see the difference on disk
- 3Use `mo.ui.slider` to make one reactive element and watch dependent cells update live
- 4Ship a dashboard with `marimo run notebook.py` — no separate web server
- 5Keep cells side-effect-free so the dependency graph stays honest
