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: use import error, not name error (#2933)

Myles Scolnickf925a24fee17
diff --git a/marimo/_server/utils.py b/marimo/_server/utils.py
index 30a15a4ab6..f92cb21e93 100644
--- a/marimo/_server/utils.py
+++ b/marimo/_server/utils.py
@@ -116,5 +116,5 @@ def print_(*args: Any, **kwargs: Any) -> None:
import click
click.echo(*args, **kwargs)
- except NameError:
+ except ImportError:
print(*args, **kwargs) # noqa: T201