Python Forum

Full Version: Can't visualize maps using Gmaps
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
i'm trying to use the Gmaps library on Jupyter notebook. I can't display the generated map.

- Installation: i tried both conda install -c conda-forge gmaps
and pip3 install gmaps .

- Api key: i followed the instructions (here).

- Before starting Jupyter i ran these commands succesfully:
jupyter nbextension enable --py --sys-prefix gmaps
jupyter nbextension enable --py --sys-prefix widgetsnbextension

- Code:
import gmaps
%matplotlib inline

gmaps.configure(api_key='AIza....etc')

new_york_coordinates = (40.75, -74.00)
fig = gmaps.figure(center=new_york_coordinates, zoom_level=12)

fig
- Output (without map):
Figure(layout=FigureLayout(height='420px'))

How can i show the desired map?