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: no-show-code default for html-wasm export (#3298)

Akshay Agrawaldc1c2bf81d73
diff --git a/marimo/_cli/export/commands.py b/marimo/_cli/export/commands.py
index 522033358d..91d54bae93 100644
--- a/marimo/_cli/export/commands.py
+++ b/marimo/_cli/export/commands.py
@@ -412,15 +412,18 @@ and cannot be opened directly from the file system (e.g. file://).
"--mode",
type=click.Choice(["edit", "run"]),
default="run",
- help="Whether the notebook code should be editable or readonly",
+ help="Whether the notebook code should be editable or readonly.",
show_default=True,
required=True,
)
@click.option(
"--show-code/--no-show-code",
- default=True,
+ default=False,
show_default=True,
- help="Whether to show code by default in the exported HTML file.",
+ help=(
+ "Whether to show code by default in the exported HTML file; "
+ "only relevant for run mode."
+ ),
)
@click.argument(
"name",