<p align="center">
<img src="https://yellow-cdn.veclightyear.com/835a84d5/0dce9550-1438-49f6-9622-c5959f4b117f.svg">
</p>
<p align="center">
<em>一个可重复、适合git版本控制、可部署为脚本或应用的响应式Python笔记本。</em>
<p align="center">
<a href="https://docs.marimo.io" target="_blank"><strong>文档</strong></a> ·
<a href="https://discord.gg/JE7nhX6mD8" target="_blank"><strong>Discord</strong></a> ·
<a href="https://github.com/marimo-team/marimo/tree/main/examples" target="_blank"><strong>示例</strong></a>
</p>
<p align="center">
<a href="https://pypi.org/project/marimo/"><img src="https://img.shields.io/pypi/v/marimo?color=%2334D058&label=pypi" /></a>
<a href="https://anaconda.org/conda-forge/marimo"><img src="https://yellow-cdn.veclightyear.com/835a84d5/7fdde105-6007-4abd-82d4-4416f6d1ba91.svg"/></a>
<a href="https://github.com/marimo-team/marimo/blob/main/LICENSE"><img src="https://img.shields.io/pypi/l/marimo" /></a>
</p>
marimo 是一个响应式Python笔记本:运行一个单元格或与UI元素交互时,marimo会自动运行依赖的单元格(或<a href="#expensive-notebooks">将其标记为过时</a>),保持代码和输出的一致性。marimo笔记本以纯Python形式存储,可作为脚本执行,并可部署为应用程序。
主要特点:
- 响应式:运行一个单元格时,marimo会自动运行所有依赖的单元格
- 交互式:将滑块、表格、图表等绑定到Python 代码 — 无需回调函数
- 可重现:无隐藏状态,确定性执行
- 可执行:作为Python脚本执行,可通过命令行参数进行参数化
- 可共享:部署为交互式Web应用,或通过WASM在浏览器中运行
- 数据中心:内置SQL支持和数据源面板
- 适合git版本控制:以 .py 文件形式存储
pip install marimo && marimo tutorial intro
在我们的在线游乐场尝试marimo,完全在浏览器中运行!
跳转到快速入门了解我们的CLI使用入门。
响应式编程环境
marimo保证您的笔记本代码、输出和程序状态保持一致。这解决了