Skip to content

A reactive notebook for Python — run reproducible experiments, query with SQL, execute as a script, deploy as an app, and version with git. Stored as pure Python. All in a modern, AI-native editor.

improve: marimo export html-wasm CLI message (#3166)

Akshay Agrawala6c464ba4f4f
diff --git a/marimo/_cli/export/commands.py b/marimo/_cli/export/commands.py
index c2881d9b76..103f80004d 100644
--- a/marimo/_cli/export/commands.py
+++ b/marimo/_cli/export/commands.py
@@ -395,7 +395,14 @@ def html_wasm(
# Export assets first
Exporter().export_assets(output)
echo(
- f"Assets copied to {green(output)}. These assets are required for the notebook to run in the browser."
+ f"Assets copied to {green(output)}. These assets are required for the "
+ "notebook to run in the browser."
+ )
+
+ echo(
+ "To run the exported notebook, use:\n"
+ f" cd {output} && python -m http.server\n"
+ "Then open the URL that is printed to your terminal."
)
outfile = os.path.join(output, "index.html")