Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion docs/guides/deploying/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,12 @@ marimo run app.py --base-url /subpath

### Including code in your application

You can include code in your application by using the `--include-code` flag when running your application.
By default, `marimo run` hides the notebook source code from the app and does
not send it to the client, so the code is not retrievable via browser dev
tools. This is useful when the notebook source is confidential.

If you would like to expose the source code in the app, you can include it by
using the `--include-code` flag when running your application.

```bash
marimo run app.py --include-code
Expand Down
5 changes: 4 additions & 1 deletion marimo/_cli/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -997,7 +997,10 @@ def _create_run_workspace(
is_flag=True,
default=False,
type=bool,
help="Include notebook code in the app.",
help=(
"Include notebook code in the app. By default, code is hidden and "
"is not sent to the client."
),
)
@click.option(
"--session-ttl",
Expand Down
Loading