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: recovery with setup cell (#4804)

Dylan Madisettif343ccdedd18
diff --git a/marimo/_ast/codegen.py b/marimo/_ast/codegen.py
index 85caedea0f..27b8c7b3f9 100644
--- a/marimo/_ast/codegen.py
+++ b/marimo/_ast/codegen.py
@@ -416,9 +416,9 @@ def recover(filename: str) -> str:
)
)
return generate_filecontents(
- cast(list[str], codes),
- cast(list[str], names),
- cast(list[CellConfig], configs),
+ cast(list[str], list(codes)),
+ cast(list[str], list(names)),
+ cast(list[CellConfig], list(configs)),
)