API Reference

Use the marimo library in marimo notebooks (import marimo as mo) to

  • connect interactive inputs like sliders, dropdowns, and tables to Python,

  • express yourself with dynamically created markdown,

  • layout information with tabs or grids,

  • output media like images and audio,

  • and more!

Markdown

Write markdown with mo.md

Inputs

Connect sliders, dropdowns, tables, and more to Python

Layouts

Customize outputs with accordions, tabs, stacks, and more

Plotting

Output interactive plots

Media

Output media like images, audio, PDFs, and plain text

Diagrams

Flow charts, graphs, statistic cards, and more

Status

Display progress indicators

Outputs

Modify cell outputs, redirect console output

Control flow

Control how cells execute

HTML

Manipulate HTML objects

Query Parameters

Access and set query parameters with mo.query_params

Command Line Arguments

Access command-line arguments with mo.cli_args

Caching

Cache expensive computations in memory or on disk

State

Synchronize multiple UI elements with mo.state

App

Embed notebooks in other notebooks

Cell

Run cells defined in another notebook

Miscellaneous

Miscellaneous utilities