Back to Marimo

Examples

docs/examples/index.md

0.23.58.6 KB
Original Source

Examples

This page includes dozens of bite-sized how-to examples to help you get started with marimo. Be sure to also read the quickstart and the user guide, especially the guide on how marimo runs cells.

!!! Tip "Get inspired at our gallery!"

For inspirational examples, including embedding-driven
data labelers, Stanford-scientist authored tutorials, and more,
check out our [public gallery](https://marimo.io/gallery).

Running cells

<div class="grid cards" markdown> </div>

Visual Outputs

<div class="grid cards" markdown> </div>

Writing markdown

<div class="grid cards examples-grid" markdown> </div>

Working with data

Dataframes

marimo is designed for working with dataframes. Here are a few examples; see the dataframes guide for details.

<div class="grid cards" markdown> </div>

SQL

Here are some basic examples, see the SQL guide for more details.

<div class="grid cards examples-grid" markdown> </div>

Plots

See the plotting guide for a full overview.

<div class="grid cards examples-grid" markdown> </div>

Progress bars and status elements

<div class="grid cards examples-grid" markdown> </div>

Layouts

<div class="grid cards examples-grid" markdown> </div>

Input elements

Basic input elements

marimo has a large library of interactive UI elements, which you can use without callbacks — just make sure to assign elements to global variables. See the API reference for a full list, and the interactivity guide for rules governing how UI elements work.

<div class="grid cards examples-grid" markdown>
  • 🎚️ Slider


    <a href="../api/inputs/slider.md"></a>

  • 🧾 Dropdown


    <a href="../api/inputs/dropdown.md"></a>

  • 👆 Multi-select


    <a href="../api/inputs/multiselect.md"></a>

  • 🔘 Radio buttons


    <a href="../api/inputs/radio.md"></a>

  • ☑️ Checkbox


    <a href="../api/inputs/checkbox.md"></a>

  • 📅 Date


    <a href="../api/inputs/date.md"></a>

  • 📁 File


    <a href="../api/inputs/file.md"></a>

  • 🔤 Text input


    <a href="../api/inputs/text.md"></a>

  • 📝 Text area


    <a href="../api/inputs/text_area.md"></a>

  • 🧑‍💻 Code editor


    <a href="../api/inputs/code_editor.md"></a>

  • 🔍 Table


    <a href="../api/inputs/table.md"></a>

  • 🎙️ Microphone


    <a href="../api/inputs/microphone.md"></a>

  • 💬 Chat


    <a href="../api/inputs/chat.md"></a>

  • 🔢 Matrix


    <a href="../api/inputs/matrix.md"></a>

</div>

Composite input elements

Composite input elements let you create a single UI element from multiple other UI elements.

<div class="grid cards examples-grid" markdown>
  • 🧾 Form


    <a href="../api/inputs/form.md"></a>

  • 🎒 Array


    <a href="../api/inputs/array.md"></a>

  • 📖 Dictionary


    <a href="../api/inputs/dictionary.md"></a>

</div>