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.

refresh: marimo/_smoke_tests/scripts/logging_in_scripts.py (#5002)

Dylan Madisetti70cef2dd65b2
diff --git a/marimo/_smoke_tests/scripts/logging_in_scripts.py b/marimo/_smoke_tests/scripts/logging_in_scripts.py
index 706db83c51..080eb741a5 100644
--- a/marimo/_smoke_tests/scripts/logging_in_scripts.py
+++ b/marimo/_smoke_tests/scripts/logging_in_scripts.py
@@ -7,14 +7,18 @@ app = marimo.App(width="medium")
@app.cell
def _():
import marimo as mo
+ import sys
import time
- return mo, time
+ return mo, sys, time
@app.cell
-def _(mo, time):
+def _(mo, sys, time):
for i in mo.status.progress_bar(range(10)):
- print(f"Step {i}")
+ if i % 2 == 0:
+ print(f"Step {i}", file=sys.stderr)
+ else:
+ print(f"Step {i}")
time.sleep(1)
return