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

HTML

Manipulate HTML objects

Console outputs

Redirect print statements and other console output

Control flow

Control how cells execute

State

Make stateful apps with mo.state

Debugging

Debugging utilities