将探索性Python笔记本转化为可重现的应用程序和报告,使用marimo
Promote notebook work into rerunnable Python artifacts or lightweight apps when an analysis needs to be shared, versioned, and rerun reliably.
Prerequisites
Python 3.9+, marimo, notebook or analysis code
Installation
Use the upstream install or setup path that matches your environment:
- pip install marimo && marimo tutorial intro
- pip install marimo # or conda install -c conda-forge marimo
- pip install "marimo[recommended]"
Requirements and caveats from upstream:
- <em>A reactive Python notebook that's reproducible, git-friendly, and deployable as scripts or apps.</em>
- marimo is a reactive Python notebook: run a cell or interact with a UI
- consistent. marimo notebooks are stored as pure Python (with first-class SQL support), executable as scripts,
Basic usage or getting-started notes:
- ⚡️ reactive: run a cell, and marimo reactively runs all dependent cells or <a href="#expensive-notebooks">marks them as stale</a>
- 🛜 shareable: deploy as an interactive web app or slides, [run in the browser via WASM](https://docs.marimo.io/gui...
- 🧪 testable: run pytest on notebooks
- Source: https://github.com/1991513ccie-png/skills
- Extracted from upstream docs: https://raw.githubusercontent.com/marimo-team/marimo/HEAD/README.md
Documentation
- https://docs.marimo.io/