
Plotly.py provides comprehensive data visualization capabilities with built-in MapLibre GL JS integration for geographic plots. This Python library enables data scientists and analysts to create interactive charts, maps, and dashboards with open-source vector rendering in Jupyter notebooks and Python applications.

Plotly is Switching to MapLibre
Read on plotly.com ↗
Quick start
pip install plotly pandasimport 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",
)
fig.show()›Setup noteschecked with v7.1.0
The MapLibre traces (px.scatter_map, go.Scattermap, and the other *_map traces) arrived in Plotly.py 5.24; version 7 removed the older Mapbox traces. fig.show() renders inline in Jupyter and opens a browser tab from a script. Keyless built-in styles include "open-street-map", "carto-positron", and "carto-darkmatter"; map_style also takes a style URL.
Other platforms are on SDKs.
