Replies: 5 comments 6 replies
-
This is a great idea, and has been requested a few times. We very well may do this in the future. In the meantime, can you get by with iframing marimo.app (https://docs.marimo.io/guides/wasm.html#embedding)? |
Beta Was this translation helpful? Give feedback.
-
That would be a nice feature! I Think it would solve many data security concerns and help publish marimo notebooks to non tech colleagues |
Beta Was this translation helpful? Give feedback.
-
Lot of private data sources cannot be loaded from cross origin, so embedding an iframe isn't useful. Starboard notebook allows easy embedding into any webpage using a plain js+css file: https://github.com/gzuidhof/starboard-notebook |
Beta Was this translation helpful? Give feedback.
-
@aszenz , @jettil , and @astrowonk : we now have the pieces to make this possible, with marimo islands. In fact this is possible today using islands yourself, but I recognize that's more cognitive overhead than a CLI command. We'll add support for this. |
Beta Was this translation helpful? Give feedback.
-
Good news! This is now possible in marimo 0.10.0, here are the docs. (related PR). # export as readonly, with code locked
marimo export html-wasm notebook.py -o output_dir --mode run
# export as an editable notebook
marimo export html-wasm notebook.py -o output_dir --mode edit The exported HTML file will run your notebook using WebAssembly, making it completely self-contained and executable in the browser. This means users can interact with your notebook without needing Python or marimo installed. Options:
|
Beta Was this translation helpful? Give feedback.
-
marimo.app is very cool and I was excited to see the WASM support. But, WASM apps should be able to just be turned into a folder than can deployed on any web server (nginx, apache, etc.) Shiny Live for example has an easy
shinylive export myapp site
command that turns the app into a folder I can upload to my nginx server.Whereas for now, wasm notebooks seem to require using
marimo.app
. Is there a plan to have an export option someday? Thanks!Beta Was this translation helpful? Give feedback.
All reactions