docs/guides/exporting/jupyter_notebook.md
Export marimo notebooks to Jupyter .ipynb format. This lets you
go from marimo into the vast Jupyter export ecosystem, including tools
like nbconvert, Quarto, JupyterBook, and more.
You can configure individual notebooks to automatically
save as ipynb through the notebook menu. These automatic snapshots are
saved to a folder called __marimo__ in the notebook directory.
Export to Jupyter notebook in topological order, so the notebook can be run from top to bottom:
marimo export ipynb notebook.py -o notebook.ipynb
Export with cells in the same order as the marimo notebook:
marimo export ipynb notebook.py -o notebook.ipynb --sort=top-down
See all options:
marimo export ipynb notebook.py -o notebook.ipynb --sort=top-down
You can also convert a Jupyter notebook back to a marimo notebook:
marimo convert notebook.ipynb -o notebook.py