Skip to content

Commit

Permalink
improve: no-show-code default for html-wasm export
Browse files Browse the repository at this point in the history
Responding to user feedback that export html-wasm --mode run should
hide code by default.

In contrast, export html (without wasm) still shows code by default because this
command has no distinction between run and edit mode.
  • Loading branch information
akshayka committed Dec 27, 2024
1 parent 4e4d7f0 commit 6d884f2
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions marimo/_cli/export/commands.py
Original file line number Diff line number Diff line change
Expand Up @@ -412,15 +412,18 @@ def export_callback(file_path: MarimoPath) -> ExportResult:
"--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",
Expand Down

0 comments on commit 6d884f2

Please sign in to comment.