%matplotlib inline import os import geopandas as gpd import matplotlib.pyplot as plt import mplleaflet filename = os.path.join('data', 'nybb.zip') df = gpd.read_file('/nybb.shp', vfs='zip://' + filename) ax = df.plot() # The display call inserts the html in the IPython notebook. # An interactive, panable, zoomable map. mplleaflet.display(fig=ax.figure, crs=df.crs)