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.

use reactive plotly in mapbox example (#359)

Akshay Agrawal000cbbc85256
diff --git a/examples/third_party/mapbox.py b/examples/third_party/mapbox.py
index ced13faa14..04ef72fd04 100644
--- a/examples/third_party/mapbox.py
+++ b/examples/third_party/mapbox.py
@@ -23,8 +23,14 @@ def __(mo):
@app.cell
-def __(get_map, view_button):
- get_map(satellite=view_button.value)
+def __(mo, get_map, view_button):
+ f = mo.ui.plotly(get_map(satellite=view_button.value))
+ f
+ return f,
+
+def __(f, mo):
+ mo.ui.table(f.value)
return