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.

ignore project when running in a sandbox (#2340)

Akshay Agrawal95295f8e0a45
diff --git a/marimo/_cli/sandbox.py b/marimo/_cli/sandbox.py
index db16c88c4c..2e925ae7cc 100644
--- a/marimo/_cli/sandbox.py
+++ b/marimo/_cli/sandbox.py
@@ -55,6 +55,9 @@ def run_in_sandbox(
"uv",
"run",
"--isolated",
+ # sandboxed notebook shouldn't pick up existing pyproject.toml,
+ # which may conflict with the sandbox requirements
+ "--no-project",
"--with-requirements",
temp_file_path,
] + cmd