← All templates · Developer tools
Deploy marimo in one click
A reactive Python notebook: cells rerun when what they depend on changes, and a notebook is a plain .py file
A self-hosted alternative to Jupyter, Google Colab, and Streamlit.
What is marimo?
marimo is an open-source reactive Python notebook, a Jupyter alternative with no hidden state. Run a cell and marimo reruns every cell that uses its variables, so the outputs always match the code. Each notebook is stored as pure Python, a .py file that diffs cleanly in git, runs as a script and imports as a module. SQL cells query dataframes and databases and return a Python dataframe, and sliders, dropdowns and tables bind to Python with no callbacks.
Self-hosted, marimo keeps your notebooks and the data they read on your own server, where they run on its CPU and memory and open in any browser. It suits one person or a small team that trusts each other: the editor sits behind one shared password, with no user accounts or roles.
Hosting marimo on Pethost
- You sign in to Pethost with a passkey, GitHub or Google. No machine yet? You pick a plan, and the link waits until it is ready.
- New project opens at marimo. You fill in what it asks for and click Create project: Admin password.
- In a minute or two marimo is live at its own address with HTTPS. Its secrets are made at random, and its data is in the nightly backup.
- It is a project like any other: you or your agent can change it, roll it back or restore it.
Questions about marimo
Is marimo free and open source?
Yes. marimo is open source under the Apache 2.0 license and free to use, commercial work included.
What is the difference between marimo and Jupyter?
Jupyter runs only the cell you run and saves notebooks as .ipynb JSON; marimo also reruns the cells that depend on it and saves plain Python. The trade-off: in marimo a variable can be defined in only one cell.
How do I convert a Jupyter notebook to marimo?
Run marimo convert your_notebook.ipynb -o your_notebook.py. To go back, marimo export ipynb writes a Jupyter file, and marimo export also writes HTML, WebAssembly HTML, Markdown, PDF or a flat script.
Can marimo replace Streamlit?
For many data apps, yes. marimo run notebook.py serves a notebook as a web app with the code hidden, its outputs stacked, arranged on a grid or shown as slides, and the same file stays an editable notebook.
Can I install Python packages like pandas in marimo?
Yes, from the editor: the sidebar's package panel installs them, and marimo offers to install a missing import. This template runs marimo's base image, without pandas or numpy, and packages install into the container, not the notebooks volume.
How much memory and disk does marimo need?
marimo is light: under 100 MB at rest, and a notebook adds what its data and libraries take, often hundreds of MB. On Pethost the Starter plan is enough for it, with room for other apps beside it.
marimo Docker Compose file
The template is this compose.yaml and the variables written into the project’s .env as it is created. Pethost runs the file as it is written.
Containers: marimo (ghcr.io/marimo-team/marimo:0.25.1).
Volumes, in the nightly backup: notebooks.
services:
marimo:
image: ghcr.io/marimo-team/marimo:0.25.1
restart: unless-stopped
environment:
MARIMO_PASSWORD: ${ADMIN_PASSWORD}
command:
- sh
- -c
- exec marimo edit --headless --host 0.0.0.0 -p 8080 --token-password "$$MARIMO_PASSWORD" /app/data
volumes:
- notebooks:/app/data
volumes:
notebooks:
More in Developer tools
- GiteaGit hosting with pull requests and issues
- code-serverVS Code in the browser
- KrokiDiagrams from text: PlantUML, Mermaid, Graphviz and more
- CoderRemote development environments from Terraform templates, opened in VS Code, JetBrains, a browser or over SSH
- HasuraInstant GraphQL and REST APIs over a Postgres database, with permissions, events and a web console
- InsForgeA backend for apps that coding agents build: Postgres, auth, storage and edge functions