marimo
Skill49 starsChanged 10 months agoMITView on GitHub
Guide for creating and working with marimo notebooks, the reactive Python notebook that stores as pure .py files. This skill should be used when creating, editing, running, or deploying marimo notebooks.
- Installs packages
3 other projects use a version of this.
Adopted by
Most recently taken up by
- ericmjl/skillstheir own version, first seen Sep 26, 2026
- DAAF-Contribution-Community/daaftheir own version, first seen Aug 9, 2026
- nibzard/skillstheir own version, first seen Feb 6, 2026
Other versions3 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 3
- DAAF-Contribution-Community/daaf★ 236same name
- ericmjl/skills★ 39same name
- nibzard/skills★ 2same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository20 other files it gives its agents.
- AGENTS.mdAGENTS.md
- address-code-reviewSkill
- autoresearchSkill
- blueskySkill
- brainstormSkill
- code-reviewSkill
- collaborationSkill
- datastarSkill
- decisionsSkill
- design-docSkill
- diarySkill
- gardenSkill
- gitSkill
- gomponentsSkill
- goSkill
- nanobananaSkill
- observable-plotSkill
- save-web-pageSkill
- sqlSkill
- worktreesSkill
The file
We split this skill into the rules it gives an agent
5 rules. About 0 are common, 2 are distinctive, and 3 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈2
Distinctive · estimate
This author's own choices. Worth a look.
3
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 15
Run as scripts or deploy as web apps
- Distinctive: line 64
If mutating is needed, do it in the same cell as the declaration
- Very specific: line 176
Performance: Use @mo.cache for expensive computations
- Very specific: line 177
UI Gating: Use mo.stop() to prevent expensive ops until ready
- Very specific: line 178
State: Avoid mo.state() unless synchronizing multiple UI elements
≈ “Common” is an estimate: at least 1 in 5 of the 213,895 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
marimo
Overview
marimo is an open-source reactive Python notebook that reinvents notebooks as reproducible, interactive, and shareable Python programs. Unlike traditional Jupyter notebooks, marimo notebooks:
- Store as pure
.pyfiles (Git-friendly, no JSON) - Execute reactively (like a spreadsheet)
- Run as scripts or deploy as web apps
- Prevent bugs through automatic dependency tracking
Installation
pip install marimo # Basic
pip install marimo[recommended] # With extras
pip install marimo[sql] # With SQL support
marimo tutorial intro # Start tutorialCLI Commands
# Edit
marimo edit # New notebook
marimo edit notebook.py # Edit existing
marimo edit --watch --sandbox # Watch files, isolate deps
# Run as app
marimo run notebook.py # Read-only app
marimo run notebook.py --watch # Auto-reload on changes
# Run as script
python notebook.py
# Create from prompt
marimo new "analyze sales data"
# Convert
marimo convert notebook.ipynb -o notebook.py
# Export
marimo export html notebook.py -o output.html
marimo export html-wasm notebook.py -o output.html # Browser-executableKey Concepts
Reactivity
Running a cell automatically runs all cells that depend on it. Execution order is determined by variable dependencies (DAG), not cell position.
Cell Rules
- Each global variable must be defined in exactly one cell
- Mutations like
list.append()aren't tracked; reassign instead - If mutating is needed, do it in the same cell as the declaration
File Format
Notebooks are pure Python files with marimo decorators:
import marimo
app = marimo.App()
@app.cell
def _():
import marimo as mo
return (mo,)
@app.cell
def _(mo):
mo.md("# My Notebook")
return ()API Reference
Detailed documentation for each API is available in the references/ directory. Consult these files for comprehensive examples and parameters.
Core
| API | Reference File | Description |
| Markdown | references/markdown.md | mo.md() for rich text, LaTeX, icons |
| HTML | references/html.md | mo.Html, mo.as_html(), styling |
| Outputs | references/outputs.md | mo.output.append(), console redirection |
UI Elements
| API | Reference File | Description |
| Inputs | references/inputs.md | Sliders, text, dropdowns, tables, forms, etc. |
| Layouts | references/layouts.md | mo.hstack, mo.vstack, tabs, accordion, etc. |
| Media | references/media.md | Images, audio, video, PDF, downloads |
| Plotting | references/plotting.md | Altair, Plotly, matplotlib integration |
| Diagrams | references/diagrams.md | Mermaid diagrams |
| Status | references/status.md | Progress bars, spinners |
Data
| API | Reference File | Description |
| SQL | references/sql.md | mo.sql() for database and DataFrame queries |
Advanced
| API | Reference File | Description |
| Control Flow | references/control-flow.md | mo.stop(), conditional execution |
| State | references/state.md | mo.state() for UI synchronization |
| Caching | references/caching.md | @mo.cache, @mo.persistent_cache |
| Query Params | references/query-params.md | mo.query_params() for URL state |
| CLI Args | references/cli-args.md | mo.cli_args() for script arguments |
| Watch | references/watch.md | mo.watch.file() for reactive file monitoring |
| App | references/app.md | Embedding notebooks, mo.app_meta() |
| Cell | references/cell.md | Cross-notebook execution, testing |
Quick Examples
Basic UI
import marimo as mo
slider = mo.ui.slider(0, 100, value=50, label="Threshold")
slider
# In another cell
mo.md(f"Selected value: **{slider.value}**")Interactive Table
table = mo.ui.table(df, selection="multi")
table
# In another cell
selected = table.value # Selected rows as DataFrameSQL Query
result = mo.sql(f"SELECT * FROM {df} WHERE value > {threshold.value}")Conditional Execution
mo.stop(form.value is None, mo.md("Submit the form to continue"))
# Rest of cell runs only after form submissionRunning as Apps
marimo run notebook.py # Local app
marimo export html-wasm notebook.py # Static WASM appLayout options: Vertical (default), Grid (drag-drop in editor), Slides.
Best Practices
- Reactivity: Declare and mutate variables in the same cell
- Performance: Use
@mo.cachefor expensive computations - UI Gating: Use
mo.stop()to prevent expensive ops until ready - State: Avoid
mo.state()unless synchronizing multiple UI elements - Organization: Cell position doesn't matter; organize for readability
Resources
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

