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: strip executor frame from cell tracebacks on Windows (#9565)

Myles Scolnickc9f8a33e3fb1
diff --git a/marimo/_messaging/tracebacks.py b/marimo/_messaging/tracebacks.py
index a6061204c1..cb15340775 100644
--- a/marimo/_messaging/tracebacks.py
+++ b/marimo/_messaging/tracebacks.py
@@ -92,7 +92,10 @@ def _trim_traceback(traceback: str) -> str:
if (
len(lines) > 2
and lines[0] == "Traceback (most recent call last):"
- and '/marimo/_runtime/executor.py", line ' in lines[1]
+ and (
+ '/marimo/_runtime/executor.py", line ' in lines[1]
+ or '\\marimo\\_runtime\\executor.py", line ' in lines[1]
+ )
and lines[1].endswith(", in execute_cell")
):
for i in range(2, len(lines)):