Repository navigation
File formats
Notebooks are plain .py files. # %% markers (VS Code / Jupytext) are
honoured; files without markers are split at top-level statements and saved
back without markers, so a script stays a script. __file__ and the working
directory match the notebook, like running it as a script.
marimo notebooks (import marimo as mo … @app.cell functions) open as
cells and save back byte-identical when nothing changed: cell names, the
hide_code=True decorator argument (such cells open with their code hidden;
h in cell mode shows it) and mo.md(...) cells are kept. In the
kernel a small marimo shim provides mo.md, mo.Html, mo.hstack,
mo.vstack and mo.ui placeholders so such notebooks run. Not kept: other
decorator arguments and comments after a cell's return.
Jupyter notebooks (.ipynb) open with their code and markdown cells,
their stored outputs and execution counts, and save back as .ipynb with the
current outputs (notebook metadata preserved).
Markdown cells in each format are described in Markdown cells.
Use the notebook
- Getting started
- Command line
- Running cells
- Keys
- Commands
- Vim
- Markdown cells
- Variables and the debugger
- Images
Set up the workspace
Help and project