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.

docs: show import marimo as mo at notebook top (#3243)

Akshay Agrawal4d329929330a
diff --git a/docs/blocks.py b/docs/blocks.py
index db5f5d3fad..d733eabdcf 100644
--- a/docs/blocks.py
+++ b/docs/blocks.py
@@ -83,8 +83,7 @@ def create_marimo_iframe(
f'app = marimo.App(width="{app_width}")',
"",
]
- )
- footer = "\n".join(
+ ) + "\n".join(
[
"",
"@app.cell",
@@ -93,7 +92,7 @@ def create_marimo_iframe(
" return",
]
)
- body = header + code + footer
+ body = header + code
encoded_code = uri_encode_component(body)
return f"https://marimo.app/?code={encoded_code}&embed=true&mode={mode}"