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.
Python artificial-intelligencedagdata-sciencedata-visualizationdataflowdeveloper-toolsmachine-learningnotebookspipelinepythonreactivesqlweb-app
fix: ignore warnings when analyzing modules in watcher (#1338)
Akshay Agrawalc015a2eff613
diff --git a/marimo/_runtime/reload/module_watcher.py b/marimo/_runtime/reload/module_watcher.pyindex 20914e8c7d..c5f432cc3b 100644--- a/marimo/_runtime/reload/module_watcher.py+++ b/marimo/_runtime/reload/module_watcher.py@@ -6,6 +6,7 @@ import pathlibimport sysimport threadingimport time+import warningsfrom modulefinder import ModuleFinderfrom typing import TYPE_CHECKING, Callable, Literal@@ -63,7 +64,11 @@ def _depends_on(return Falsetry:- finder.run_script(src_module.__file__)+ with warnings.catch_warnings():+ # We temporarily ignore warnings to avoid spamming the console,+ # since the watcher runs in a loop+ warnings.simplefilter("ignore")+ finder.run_script(src_module.__file__)except SyntaxError:# user introduced a syntax error, maybe; still check if the# module itself has been modified