Libraries for maps in Python. folium, ipyleaflet and leafmap build interactive Leaflet maps, Lonboard renders large geospatial datasets with deck.gl, and Cartopy, PyGMT and prettymaps draw static, publication-ready maps.

By GitHub stars, the most popular Python mapping libraries here are prettymaps (14.3K stars), folium (7.4K stars), and leafmap (3.8K stars). 5 of 7 had commits in the last 90 days.

Python map & geospatial visualization libraries, ranked by GitHub stars
1 prettymaps

Draws stylized maps from OpenStreetMap data, using osmnx and matplotlib.

14.3K 9 AGPL-3.0
2 folium

Builds interactive Leaflet.js maps from Python data.

7.4K 198 MIT
3 leafmap

Interactive mapping and geospatial analysis in Jupyter with multiple mapping backends.

3.8K 130 MIT
4 Cartopy

Cartographic projections and geospatial data plotting with matplotlib.

1.6K 226 BSD-3-Clause
5 ipyleaflet

Interactive Leaflet maps in Jupyter notebooks, built on ipywidgets.

1.5K 4 MIT
6 Lonboard

Fast, interactive geospatial data visualization in Jupyter, built on deck.gl and GeoArrow.

975 157 MIT
7 PyGMT

Python interface to the Generic Mapping Tools (GMT) for maps and figures in the geosciences.

880 594 BSD-3-Clause

Head-to-head comparisons

Related topics

Related categories

Frequently asked questions

What is the most popular Python mapping library?

By GitHub stars, prettymaps is the most popular, with 14.3K stars, followed by folium (7.4K) and leafmap (3.8K).

Which Python mapping libraries are actively maintained?

7 of the 7 tools listed had commits in the last 12 months, including prettymaps, folium, leafmap, Cartopy, and ipyleaflet. Each tool page shows monthly commit activity.

Are these Python mapping libraries free and open source?

7 of the 7 tools listed use an OSI-approved open-source license. The most common license here is MIT.

Missing a tool? Add it with a one-line pull request to the README.