- Add your marimo files to the
notebooks/
orapps/
directorynotebooks/
notebooks are exported with--mode edit
apps/
notebooks are exported with--mode run
To include data or assets in your notebooks, add them to the public/
directory.
For example, the apps/charts.py
notebook loads an image asset from the public/
directory.
This repository includes a template for the generated site:
index.html.j2
(default): A template with styling and a footer
To use a specific template, pass the --template
parameter to the build script:
uv run .github/scripts/build.py --template templates/index.html.j2
You can also create your own custom templates. See the templates/README.md for more information.
To test the export process, run .github/scripts/build.py
from the root directory.
uv run .github/scripts/build.py
This will export all notebooks in a folder called _site/
in the root directory. Then to serve the site, run:
python -m http.server -d _site
This will serve the site at http://localhost:8000
.