NOTEBOOKS

Share a marimo notebook as a link

marimo can export a notebook, with its outputs and charts, as one HTML file. Upload that file and send a link that opens the notebook in any browser, with no Python on the reader’s side.

4 min read·

A marimo notebook is a .py file. Sending the file means the reader needs Python, marimo and your data to see anything. Exporting to HTML gives them the results instead: tables, charts and markdown, ready to open. For Jupyter notebooks, see sharing a Jupyter notebook as a link.

Export the notebook to HTML

  • ✓From a terminal: marimo export html notebook.py -o notebook.html. The command runs the notebook and saves the outputs into one file.
  • ✓Add --no-include-code to leave the code out, so readers see only the results.
  • ✓From the editor, the notebook menu has a download-as-HTML option that saves the same kind of file.

What stays interactive

Anything that runs in the browser keeps working: hover and zoom on Altair and Plotly charts, sortable tables, collapsible sections.

Anything that needs Python does not. The HTML export is a snapshot of one run. Sliders, dropdowns and other marimo UI elements still appear, but moving them does not rerun cells, because no Python is running behind the page.

When readers need to change inputs

marimo html-wasm export (marimo export html-wasm notebook.py -o folder --mode run) builds a version that runs Python in the browser through Pyodide, so UI elements work. It writes a folder of files rather than one HTML file, and the folder has to be served over HTTP. A static site host such as GitHub Pages or Netlify fits that folder; FileShare Pro hosts single files. Compared in FileShare Pro vs GitHub Pages.

A single page that runs Python in the browser can also be written directly with PyScript: sharing a PyScript page as a link.

Upload it and send the link

Drag the exported .html file onto the FileShare Pro dashboard and copy the link. Readers need no account and nothing to install. The free plan accepts files up to 100 MB, which covers a notebook with charts and embedded data.

Shared pages carry a noindex tag, so results from internal data do not show up in search. On Pro you can add a password: password-protecting an HTML page.

Rerun and update the same link

When the data changes, rerun the export and upload the new file over the old one. The link stays the same and the earlier version stays in history: updating a shared link without changing it.

Turn on comments and readers can leave a note on the page after typing a name, such as a number that looks off. The view count shows whether the person you sent it to has opened it.

Frequently asked

How do I share a marimo notebook with someone who does not use Python?

Run marimo export html notebook.py -o notebook.html, upload the file to a host that serves it as a web page, and send the link. It opens in any browser.

How do I hide the code in a marimo HTML export?

Add --no-include-code to the export command. The file then shows outputs only.

Why do the sliders in my exported marimo notebook do nothing?

The HTML export is a snapshot with no Python running, so UI elements cannot rerun cells. The html-wasm export runs Python in the browser and keeps them working, but it produces a folder that needs a static site host.

Do charts stay interactive?

Yes. Hover, zoom and pan on Altair and Plotly charts run in the browser and keep working in the exported file.

Is it free?

Yes. The free plan hosts up to 50 files of up to 100 MB each, with view counts and comments included.

Got a page to share?

Drop the file, copy the link — live in seconds, free plan included.

Start sharing free