Skip to main content

marimo API Reference

marimo is a reactive Python notebook library that brings notebooks to life with powerful UI elements, dynamic markdown, and seamless interactivity.

Core API

The marimo library provides three main categories of functionality:

Application Elements

  • App - Create and manage marimo notebooks
  • Cell - Define reactive cells in your notebook

UI Components (mo.ui)

Interactive UI elements for building reactive interfaces: Input Controls Data Components Advanced Components
  • chat - Chatbot interface
  • form - Form wrapper for UI elements
  • batch - Batch multiple UI elements

Getting Started

import marimo as mo

# Create a marimo app
app = mo.App()

# Define a cell
@app.cell
def __():
    import marimo as mo
    return mo,

# Create UI elements
@app.cell
def __(mo):
    slider = mo.ui.slider(1, 100, value=50)
    return slider,

Installation

pip install marimo

Learn More

Build docs developers (and LLMs) love