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: update repeated tabs with chat content tab (#3331)

Srihari Thyagarajan04b1c83e073b
diff --git a/docs/api/inputs/tabs.md b/docs/api/inputs/tabs.md
index 63a90bf8f3..c28852de4c 100644
--- a/docs/api/inputs/tabs.md
+++ b/docs/api/inputs/tabs.md
@@ -17,6 +17,14 @@ def __():
plt.title("Random Bar Chart")
plt.xlabel("Categories")
plt.ylabel("Values")
+ def simple_echo_model(messages, config):
+ return f"You said: {messages[-1].content}"
+
+ chat = mo.ui.chat(
+ simple_echo_model,
+ prompts=["Hello", "How are you?"],
+ show_configuration_controls=True
+ )
None
return
@@ -25,7 +33,7 @@ def __():
mo.ui.tabs(
{
"📈 Sales": bar,
- "📊 Subscriptions": bar,
+ "📊 Chatbot": chat,
"💻 Settings": mo.ui.text(placeholder="Key"),
}
)