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 example code in `UIElement.form` docstring (#7578)

Shunichiro Nomura9d0e1c5b1547
diff --git a/marimo/_plugins/ui/_core/ui_element.py b/marimo/_plugins/ui/_core/ui_element.py
index 28456d97ab..11cd52a2e6 100644
--- a/marimo/_plugins/ui/_core/ui_element.py
+++ b/marimo/_plugins/ui/_core/ui_element.py
@@ -373,7 +373,7 @@ class UIElement(Html, Generic[S, T]):
Combine with `HTML.batch` to create a form made out of multiple `UIElements`:
```python
form = (
- mo.ui.md(
+ mo.md(
'''
**Enter your prompt.**