Skip to content
Merged
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
2 changes: 2 additions & 0 deletions marimo/_cli/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -529,6 +529,7 @@ def edit(

run_in_docker(
name,
"edit",
port=port,
debug=GLOBAL_SETTINGS.DEVELOPMENT_MODE,
)
Expand Down Expand Up @@ -1016,6 +1017,7 @@ def run(

run_in_docker(
name,
"run",
port=port,
debug=GLOBAL_SETTINGS.DEVELOPMENT_MODE,
)
Expand Down
5 changes: 3 additions & 2 deletions marimo/_cli/run_docker.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

import subprocess
import sys
from typing import Optional
from typing import Literal, Optional

import click
from click import echo
Expand Down Expand Up @@ -93,6 +93,7 @@ def _check_port_in_use(port: int) -> Optional[str]:

def run_in_docker(
file_path: str,
mode: Literal["edit", "run"],
*,
port: Optional[int],
debug: bool = False,
Expand Down Expand Up @@ -132,7 +133,7 @@ def run_in_docker(
"uvx",
"marimo",
"-d" if debug else "",
"edit",
mode,
"--sandbox",
"--no-token",
"-p",
Expand Down
Loading