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 docs

Akshay Agrawal2dbc9c613a7d
diff --git a/marimo/_runtime/capture.py b/marimo/_runtime/capture.py
index f6fb96ea81..9f297183f0 100644
--- a/marimo/_runtime/capture.py
+++ b/marimo/_runtime/capture.py
@@ -73,7 +73,7 @@ def redirect_stderr() -> Iterator[None]:
"""Redirect `stderr` to a cell's output area.
```python
- with mo.redirect_stdout():
+ with mo.redirect_stderr():
# These messages will show up in the cell's output area
sys.stderr.write("Hello!")
sys.stderr.write("World!")