marimo Reactive Python Notebook

0.23.1 · active · verified Sat Apr 11

marimo is an open-source reactive Python notebook library that enhances traditional notebooks by guaranteeing consistency between code and outputs. It stores notebooks as pure Python files, making them Git-friendly, executable as standalone scripts, and deployable as interactive web applications. marimo also provides built-in UI elements and first-class SQL support. The current version is 0.23.1, and the project has an active development and release cadence.

Warnings

Install

Imports

Quickstart

This quickstart demonstrates creating a simple reactive marimo notebook. Save this code as a `.py` file (e.g., `my_notebook.py`) and run `marimo edit my_notebook.py` in your terminal to open it in your browser. The second cell will automatically update as you interact with the slider in the first cell.

import marimo as mo

# Create an interactive slider
slider = mo.ui.slider(1, 100, value=50, label="Select a value")
slider

# A reactive cell that uses the slider's value
# This cell will automatically re-run when the slider moves.
mo.md(f"The current value is **{slider.value}**")

view raw JSON →