Sep-11-2019, 02:38 PM
i'm trying to use the Gmaps library on Jupyter notebook. I can't display the generated map.
- Installation: i tried both
and
- Api key: i followed the instructions (here).
- Before starting Jupyter i ran these commands succesfully:
- Code:
How can i show the desired 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?