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: ignore warning for finding dependencies in new files (#2444)

Myles Scolnick9d28a34dcc9f
diff --git a/marimo/_cli/sandbox.py b/marimo/_cli/sandbox.py
index 183241d635..888acebf49 100644
--- a/marimo/_cli/sandbox.py
+++ b/marimo/_cli/sandbox.py
@@ -39,6 +39,8 @@ def get_dependencies_from_filename(name: str) -> List[str]:
try:
contents, _ = FileContentReader().read_file(name)
return _get_dependencies(contents) or []
+ except FileNotFoundError:
+ return []
except Exception:
LOGGER.warning(f"Failed to read dependencies from {name}")
return []