If you want to, you are also able to deploy a marimo app as a stand-alone web application that fully runs in the frontend. That means that the receiving party does not need to have python installed in order to see your application. This works by taking your local Python file and turning that into a compressed string to the marimo.io website. This website will then run your code in the browser via webassembly with pyodide.
You can't run everything in the browser like this though, mainly because there are a lot of Python packages that are not built to run in webassembly. You can however run pip as part of your notebook. For example, if you wanted to install pandas
you could do that via:
Demo
You can export your notebook to become statically host-able via the marimo export
command, shown below:
marimo export html-wasm notebook.py -o folder --mode edit
The --mode edit
flag is especially relevant if you want to have documentation that allows users to play around with a demo without having to install anything locally. The following Github repositories all have pages attached that allow for precisely this.