marimo tutorial
Open interactive tutorials to learn marimo’s features and best practices.Usage
Arguments
NAME - Tutorial name (required) Available tutorials:intro- Introduction to marimodataflow- Understanding reactive dataflowui- Interactive UI elementsmarkdown- Working with markdownplots- Creating plots and visualizationssql- SQL cell supportlayout- Layout and organizing notebooksfileformat- Understanding marimo’s file formatmarkdown-format- Markdown notebook formatfor-jupyter-users- Guide for Jupyter users
Options
-p, —port PORT - Port to attach to- Type: Integer
- Default: Auto-assigned
- Type: String
- Default:
127.0.0.1
- Type: String
- Type: Flag
- Default:
False
- Type: Flag
- Default:
True
- Type: String
- for stdin
- Type: String
- Type: Flag
- Default:
True
Recommended Learning Path
Follow this sequence for the best learning experience:- intro - Start here! Learn the basics of marimo
- dataflow - Understand reactive execution and dataflow
- ui - Create interactive UIs with sliders, buttons, and more
- markdown - Use markdown for rich text and documentation
- plots - Make interactive plots and visualizations
- sql - Work with SQL in marimo notebooks
- layout - Organize your notebook’s layout
- fileformat - Learn about marimo’s file structure
- markdown-format - Use markdown-based notebooks
- for-jupyter-users - Migration guide if coming from Jupyter
Examples
Starting with Basics
Custom Server Configuration
For Jupyter Users
Advanced Topics
Tutorial Descriptions
intro
A gentle introduction to marimo covering:- Creating and running cells
- Reactive execution
- Basic UI elements
- Common patterns
dataflow
Deep dive into marimo’s reactive dataflow model:- How cells automatically re-run
- Dependency graphs
- Variable scoping
- Avoiding common pitfalls
ui
Comprehensive guide to UI elements:- Sliders, dropdowns, and inputs
- Forms and layouts
- Handling user input
- Building interactive apps
markdown
Using markdown in marimo:- Markdown cells
- LaTeX equations
- Images and media
- Documentation best practices
plots
Creating visualizations:- Matplotlib integration
- Plotly and Altair
- Interactive plots
- Plot layouts
sql
SQL capabilities in marimo:- SQL cells
- Database connections
- Query results as dataframes
- Parameterized queries
layout
Organizing notebook layouts:- Horizontal and vertical layouts
- Tabs and accordions
- Responsive design
- Best practices
fileformat
Understanding marimo files:- File structure
- Version control
- Cell metadata
- Migration and compatibility
markdown-format
Using markdown-based notebooks:- Creating .md notebooks
- Code fences
- Mixed content
- When to use .md vs .py
for-jupyter-users
Transition guide covering:- Key differences from Jupyter
- Migration strategies
- Common gotchas
- Best practices
Tips
- Start with
introif you’re new to marimo - Tutorials are interactive - try modifying the code!
- Each tutorial is a real marimo notebook you can explore
- Use tutorials as templates for your own notebooks
- Tutorials are kept up-to-date with the latest marimo features
Getting Help
Related Commands
- marimo edit - Create your own notebooks
- marimo run - Run notebooks as apps