marimo-notebook
2
总安装量
2
周安装量
#73501
全站排名
安装命令
npx skills add https://github.com/jiatastic/open-python-skills --skill marimo-notebook
Agent 安装分布
claude-code
2
github-copilot
1
Skill 文档
marimo-notebook
Reproducible, reactive notebooks built as Python files with CLI and export support.
Overview
Marimo notebooks are plain .py files with reactive execution. You can run them as scripts, apps, or export to HTML.
When to Use
- Replacing Jupyter notebooks with deterministic execution
- Shipping analysis as a script or web app
- Exporting reports to HTML
Quick Start
uv pip install marimo
marimo edit notebook.py
marimo run notebook.py
Core Patterns
- Reactive cells: dependency-based execution.
- No hidden state: deterministic runs.
- CLI args: parameterize runs with
mo.cli_args(). - Export:
marimo export htmlfor reports.
Example: CLI Args
import marimo as mo
args = mo.cli_args()
name = args.get("name", "World")
mo.md(f"# Hello, {name}!")
Example: Export
marimo export html notebook.py -o report.html -- --name Alice
Troubleshooting
- Hidden state: avoid globals; rely on cell outputs
- Expensive cells: gate with
mo.stop() - Naming: use descriptive filenames for reuse