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

State

Synchronize multiple UI elements with mo.state

Debugging

Debugging utilities