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.

Show output above code (#2581)

Akshay Agrawal898c85d510d8
diff --git a/marimo/_output/show_code.py b/marimo/_output/show_code.py
index 48fa58527a..caf6e86d4f 100644
--- a/marimo/_output/show_code.py
+++ b/marimo/_output/show_code.py
@@ -54,7 +54,7 @@ def show_code(output: object = None) -> Html:
**Args:**
- output: the output to display above the cell's code; omit the output
- to just show the cel's code, without an output.
+ to just show the cell's code, without an output.
**Returns:**
@@ -75,8 +75,8 @@ def show_code(output: object = None) -> Html:
if output is not None:
return vstack(
[
- code_editor(value=code, disabled=True, min_height=1),
as_html(output),
+ code_editor(value=code, disabled=True, min_height=1),
]
)
else: