Skip to article frontmatterSkip to article content

marimo.io is a recent system to build its own kind of notebooks

executive summary

operating modes

marimo requires pip install marimo, of course
it is typically imported as import marimo as mo

marimo notebooks are designed to run only by the marimo toolset:

having 2 modes allows the run mode to show a clean interface, with all the clunky details simply not showing

execution order

the execution flow is not ordered by the notebook
in other words, you can have the result cell show up first, with all the accessory details coming last in the notebook

to achieve that, there is the notion that

the usual menagerie of objects

apart from that very typical feature, marimo comes with the usual menagerie of graphical objects
see https://docs.marimo.io/api/index.html for an overview

no text cell

another difference is, there are only code cells, and a markdown cell is actually achieved by running

mo.md("""# the markdown text

is actually provided as a Python string, passed to the `md.mo` function
""")

some examples

on the website

simple ones

in addition to those, you will find in the attached zip: