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 with inline tag (#2559)

Srihari Thyagarajan042499f7258f
diff --git a/marimo/_output/formatting.py b/marimo/_output/formatting.py
index c3584975e0..fab47d835e 100644
--- a/marimo/_output/formatting.py
+++ b/marimo/_output/formatting.py
@@ -417,8 +417,8 @@ def iframe(html: str, *, width: str = "100%", height: str = "400px") -> Html:
Embed an HTML string in an iframe.
Scripts by default are not executed using `mo.as_html` or `mo.Html`,
- so if you have a <script/> tag, you can use `mo.iframe` for
- scripts to be executed.
+ so if you have a script tag (written as "<script></script>"),
+ you can use `mo.iframe` for scripts to be executed.
You may also want to use this function to display HTML content
that may contain styles that could interfere with the rest of the