
Dash is Plotly's open-source Python framework for interactive data apps and dashboards. Its map charts are Plotly figures, which render with MapLibre GL JS through plotly.js.
Quick start
pip install dash pandasfrom dash import Dash, dcc
import plotly.express as px
df = px.data.carshare()
fig = px.scatter_map(
df,
lat="centroid_lat",
lon="centroid_lon",
color="peak_hour",
size="car_hours",
zoom=10,
map_style="open-street-map",
)
app = Dash()
app.layout = [dcc.Graph(figure=fig)]
if __name__ == "__main__":
app.run(debug=True)›Setup noteschecked with v4.4.1
Save it as app.py, run python app.py, and open http://127.0.0.1:8050/. The MapLibre map traces need plotly 5.24 or newer, so upgrade plotly in an older environment.
Other platforms are on SDKs.
