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.
Python artificial-intelligencedagdata-sciencedata-visualizationdataflowdeveloper-toolsmachine-learningnotebookspipelinepythonreactivesqlweb-app
docs: tabs examples fix (#4553)
Srihari Thyagarajan3c7ee7c31f36
diff --git a/marimo/_plugins/ui/_impl/tabs.py b/marimo/_plugins/ui/_impl/tabs.pyindex 3cea08da9f..ef8b5c9ac8 100644--- a/marimo/_plugins/ui/_impl/tabs.py+++ b/marimo/_plugins/ui/_impl/tabs.py@@ -17,18 +17,11 @@ class tabs(UIElement[str, str]):Examples:Show content in tabs:```python- tab1 = mo.vstack([- "slider": mo.ui.slider(1, 10),- "text": mo.ui.text(),- "date": mo.ui.date()- ])+ tab1 = mo.vstack([mo.ui.slider(1, 10), mo.ui.text(), mo.ui.date()])tab2 = mo.md("You can show arbitrary content in a tab.")- tabs = mo.ui.tabs({- "Heading 1": tab1,- "Heading 2": tab2- })+ tabs = mo.ui.tabs({"Heading 1": tab1, "Heading 2": tab2})```Control which tab is selected: