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.

fix: Skip PEP 723 check on directories (#5216)

Trevor Manzdb8c50928239
diff --git a/marimo/_cli/sandbox.py b/marimo/_cli/sandbox.py
index 04169675e2..58990a57f8 100644
--- a/marimo/_cli/sandbox.py
+++ b/marimo/_cli/sandbox.py
@@ -35,6 +35,9 @@ def maybe_prompt_run_in_sandbox(name: str | None) -> bool:
if name is None:
return False
+ if Path(name).is_dir():
+ return False
+
pyproject = PyProjectReader.from_filename(name)
if not pyproject.dependencies:
return False