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: conditionally show tip for invalid status in interactive terminal (#5790)

Myles Scolnick3ef1df7d4621
diff --git a/marimo/_cli/cli.py b/marimo/_cli/cli.py
index e9c82bbefe..f7fec8e584 100644
--- a/marimo/_cli/cli.py
+++ b/marimo/_cli/cli.py
@@ -71,7 +71,8 @@ def check_app_correctness(filename: str) -> None:
click.echo(f"Failed to parse notebook: {filename}\n", err=True)
raise click.ClickException(traceback.format_exc(limit=0)) from None
- if status == "invalid":
+ # Only show the tip if we're in an interactive terminal
+ if status == "invalid" and sys.stdin.isatty():
click.echo(
green("tip")
+ ": Use `"