Skip to content

Commit

Permalink
improve: marimo export html-wasm CLI message (#3166)
Browse files Browse the repository at this point in the history
Tell users how to test the notebook locally after export
  • Loading branch information
akshayka authored Dec 13, 2024
1 parent 64b1a64 commit a6c464b
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion marimo/_cli/export/commands.py
Original file line number Diff line number Diff line change
Expand Up @@ -395,7 +395,14 @@ def export_callback(file_path: MarimoPath) -> ExportResult:
# 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")
Expand Down

0 comments on commit a6c464b

Please sign in to comment.