A reactive notebook for Python — run reproducible experiments, query with SQL, execute as a script, deploy as an app, and version with git. Stored as pure Python. All in a modern, AI-native editor. https://marimo.io
  • Python 61.4%
  • TypeScript 37.3%
  • CSS 0.5%
  • JavaScript 0.3%
  • HTML 0.3%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Yair Chuchem b8c9ce29c3
feature: Infer file browser initial path from initial value (#10362)
**This pull request includes contributions from a coding agent.**

## 📝 Summary

Closes marimo-team/marimo#10340

## 📋 Pre-Review Checklist

- [X] For large changes, or changes that affect the public API: this
change was discussed or approved through an issue, on
[Discord](<https://marimo.io/discord?ref=pr>), or the community
[discussions](<https://github.com/marimo-team/marimo/discussions>)
(Please provide a link if applicable).
- [X] Any AI generated code has been reviewed line-by-line by the human
PR author, who stands by it.
- [X] Video or media evidence is provided for any visual changes
(optional).

##  Merge Checklist

- [X] I have read the [contributor
guidelines](<https://github.com/marimo-team/marimo/blob/main/CONTRIBUTING.md>).
- [X] Documentation has been updated where applicable, including
docstrings for API changes.
- [X] Tests have been added for the changes made.

---------

Co-authored-by: Codex <codex@openai.com>
2026-08-11 18:46:45 -07:00
.github docs: build llms.txt locally as a compact index instead of crawling the site (#10383) 2026-07-30 23:58:40 +02:00
.vscode oxc vscode settings (#8984) 2026-04-01 21:17:16 -04:00
configs feat: support vimrc from the user config (#4473) 2025-04-10 16:50:44 -07:00
development_docs feat: propagate request trace context to the kernel (#10166) 2026-07-14 18:01:20 -04:00
docker docker: update Dockerfile with metadata labels, environment variables, and user permissions (#8637) 2026-03-11 20:36:22 -04:00
docs fix: kill processes when interrupting a cell (#10492) 2026-08-10 14:46:45 -07:00
examples Migrate frontend to AI SDK v7 (#10486) 2026-08-11 21:16:37 +01:00
frontend feat: make editor code lens configurable via display.code_lens (#10512) 2026-08-11 18:34:00 -04:00
marimo feature: Infer file browser initial path from initial value (#10362) 2026-08-11 18:46:45 -07:00
packages feat: make editor code lens configurable via display.code_lens (#10512) 2026-08-11 18:34:00 -04:00
patches fix: patch html-to-image for PNG export font crash and tainted canvas (#8754) 2026-03-20 00:46:33 +08:00
pyodide ci: remove hatch and dead code (#8971) 2026-04-01 14:05:54 -04:00
scripts feat: backend data source discovery (#10408) 2026-07-30 20:35:46 -04:00
tests feature: Infer file browser initial path from initial value (#10362) 2026-08-11 18:46:45 -07:00
.env.testing feat: Automatically loading env vars using dotenv + specify custom env files (#4280) 2025-03-29 14:37:53 -04:00
.git-blame-ignore-revs chore: git blame ignore 2025-02-25 13:58:33 -05:00
.gitattributes [FEAT:DEV] Adding pixi to manage developer system deps (#4406) 2025-04-28 10:29:00 -04:00
.gitignore fix(frontend): make long error toasts readable and copyable (#10243) 2026-07-20 23:58:01 +08:00
.gitpod.yml chore: add pre-commit, migrate to biomejs (#1389) 2024-05-16 12:28:23 -04:00
.oxfmtrc.json [lint] oxc pre-commit (#8985) 2026-04-02 09:38:21 -04:00
.pre-commit-config.yaml [pre-commit.ci] pre-commit autoupdate (#10248) 2026-08-04 12:37:50 -04:00
.python-version improvement: better tracebacks, padding, remove button for static files (#6912) 2025-10-23 20:42:12 -04:00
AGENTS.md style: enforce single backticks in Python docstrings (markdown, not RST) (#9645) 2026-05-21 10:12:56 -07:00
CITATION.cff [lint] oxc pre-commit (#8985) 2026-04-02 09:38:21 -04:00
CLAUDE.md add agents.md, remove cursorrules, update PR template (#7780) 2026-01-12 13:37:12 +08:00
CODE_OF_CONDUCT.md governance: org-wide code-of-conduct email (#5013) 2025-05-21 10:12:50 -04:00
codecov.yml ci: configure bundle size change notification (#8876) 2026-03-26 18:14:42 -04:00
CODEOWNERS chore: prune codeowners (#9146) 2026-04-12 09:39:52 -07:00
CONTRIBUTING.md Remove pnpm 9 support. (#9699) 2026-05-28 13:12:39 +08:00
DESIGN.md feat: tooling to generate canonical DESIGN.md (#9641) 2026-06-22 11:55:53 -04:00
GOVERNANCE.md governance: add Bennet Meyers (#5012) 2025-05-21 10:13:02 -04:00
LICENSE Initial commit 2023-08-14 12:20:23 -07:00
Makefile docs: build llms.txt locally as a compact index instead of crawling the site (#10383) 2026-07-30 23:58:40 +02:00
MANIFEST.in feat: marimo edit/run markdown.md (#1332) 2024-05-16 10:51:05 -04:00
mkdocs.yml docs: marimo glance (#10282) 2026-07-23 14:10:27 -04:00
package.json Remove pnpm 9 support. (#9699) 2026-05-28 13:12:39 +08:00
pnpm-lock.yaml Migrate frontend to AI SDK v7 (#10486) 2026-08-11 21:16:37 +01:00
pnpm-workspace.yaml chore(deps): update dependency postcss to v8.5.12 [security] (#10310) 2026-07-24 13:00:12 -04:00
pyproject.toml ci fix: add types-docutils for mypy typecheck (#10487) 2026-08-07 13:07:37 -07:00
README.md docs: pycharm plugin (#10283) 2026-07-23 10:56:10 -07:00
README_Chinese.md docs: change READMEs to be more consistent for different languages (#6696) 2025-10-06 09:24:04 -07:00
README_Japanese.md improvement: enhance Japanese README for clarity and consistency (#7220) 2025-11-20 09:37:53 -08:00
README_Spanish.md docs: change READMEs to be more consistent for different languages (#6696) 2025-10-06 09:24:04 -07:00
README_Traditional_Chinese.md docs(readme): sync Traditional Chinese README with English (#10364) 2026-07-29 09:43:56 -04:00
SECURITY.md docs: security acknowledgments (#10279) 2026-08-04 17:01:01 -04:00
tsconfig.json Migrate to pnpm workspace layout (#5668) 2025-07-17 14:28:44 -04:00
turbo.json ci: report frontend test coverage on pull requests (#10273) 2026-07-22 12:59:39 -04:00

A reactive Python notebook that's reproducible, git-friendly, and deployable as scripts or apps.

Docs · Discord · Examples · Gallery · YouTube

English | 繁體中文 | 简体中文 | 日本語 | Español

discord Pepy Total Downloads Conda Downloads

marimo is a reactive Python notebook: run a cell or interact with a UI element, and marimo automatically runs dependent cells (or marks them as stale), keeping code and outputs consistent. marimo notebooks are stored as pure Python (with first-class SQL support), executable as scripts, and deployable as apps.

Highlights.

pip install marimo && marimo tutorial intro

Get started instantly with molab, our free online notebook. Or jump to the quickstart for a primer on our CLI.

A reactive programming environment

marimo guarantees your notebook code, outputs, and program state are consistent. This solves many problems associated with traditional notebooks like Jupyter.

A reactive programming environment. Run a cell and marimo reacts by automatically running the cells that reference its variables, eliminating the error-prone task of manually re-running cells. Delete a cell and marimo scrubs its variables from program memory, eliminating hidden state.

Compatible with expensive notebooks. marimo lets you configure the runtime to be lazy, marking affected cells as stale instead of automatically running them. This gives you guarantees on program state while preventing accidental execution of expensive cells.

Synchronized UI elements. Interact with UI elements like sliders, dropdowns, dataframe transformers, and chat interfaces, and the cells that use them are automatically re-run with their latest values.

Interactive dataframes. Page through, search, filter, and sort millions of rows blazingly fast, no code required.

Generate cells with data-aware AI. Collaborate on marimo notebooks with your favorite agent, such as Claude Code, Codex, or OpenCode, using marimo pair. Or, generate code in the marimo editor with an AI assistant that is highly specialized for working with data, with context about your variables in memory. Customize the system prompt, bring your own API keys, or use local models.

Query data with SQL. Build SQL queries that depend on Python values and execute them against dataframes, databases, lakehouses, CSVs, Google Sheets, or anything else using our built-in SQL engine, which returns the result as a Python dataframe.

Your notebooks are still pure Python, even if they use SQL.

Dynamic markdown. Use markdown parametrized by Python variables to tell dynamic stories that depend on Python data.

Built-in package management. marimo has built-in support for all major package managers, letting you install packages on import. marimo can even serialize package requirements in notebook files, and auto install them in isolated venv sandboxes.

Deterministic execution order. Notebooks are executed in a deterministic order, based on variable references instead of cells' positions on the page. Organize your notebooks to best fit the stories you'd like to tell.

Performant runtime. marimo runs only those cells that need to be run by statically analyzing your code.

Batteries-included. marimo comes with GitHub Copilot, AI assistants, Ruff code formatting, HTML export, fast code completion, a VS Code extension, a PyCharm plugin, an interactive dataframe viewer, and many more quality-of-life features.

Quickstart

The marimo concepts playlist on our YouTube channel gives an overview of many features.

Installation. In a terminal, run

pip install marimo  # or conda install -c conda-forge marimo
marimo tutorial intro

To install with additional dependencies that unlock SQL cells, AI completion, and more, run

pip install "marimo[recommended]"

Create notebooks.

Create or edit notebooks with

marimo edit

Run apps. Run your notebook as a web app, with Python code hidden and uneditable:

marimo run your_notebook.py

Execute as scripts. Execute a notebook as a script at the command line:

python your_notebook.py

Automatically convert Jupyter notebooks. Automatically convert Jupyter notebooks to marimo notebooks with the CLI

marimo convert your_notebook.ipynb > your_notebook.py

or use our web interface.

Tutorials. List all tutorials:

marimo tutorial --help

Share cloud-based notebooks. Use molab, a cloud-based marimo notebook service similar to Google Colab, to create and share notebook links.

Questions?

See the FAQ at our docs.

Learn more

marimo is easy to get started with, with lots of room for power users. For example, here's an embedding visualizer made in marimo (try the notebook live on molab!):

Check out our docs, usage examples, and our gallery to learn more.

Tutorial Inputs Plots Layout

Contributing

We appreciate all contributions! You don't need to be an expert to help out. Please see CONTRIBUTING.md for more details on how to get started.

Questions? Reach out to us on Discord.

Community

We're building a community. Come hang out with us!

A NumFOCUS affiliated project. marimo is a core part of the broader Python ecosystem and is a member of the NumFOCUS community, which includes projects such as NumPy, SciPy, and Matplotlib.

Inspiration

marimo is a reinvention of the Python notebook as a reproducible, interactive, and shareable Python program, instead of an error-prone JSON scratchpad.

We believe that the tools we use shape the way we think — better tools, for better minds. With marimo, we hope to provide the Python community with a better programming environment to do research and communicate it; to experiment with code and share it; to learn computational science and teach it.

Our inspiration comes from many places and projects, especially Pluto.jl, ObservableHQ, and Bret Victor's essays. marimo is part of a greater movement toward reactive dataflow programming. From IPyflow, streamlit, TensorFlow, PyTorch, JAX, and React, the ideas of functional, declarative, and reactive programming are transforming a broad range of tools for the better.

Finally, we would like to acknowledge Bennet Meyers and David Chassin for believing in marimo from the very beginning: this work was supported in part by U.S. DOE Office of Critical Minerals and Energy Innovation (CMEI) Integrated Energy Systems Office (IESO), Agreement 34368.