Can't visualize maps using Gmaps - Printable Version +- Python Forum (https://python-forum.io) +-- Forum: Python Coding (https://python-forum.io/forum-7.html) +--- Forum: General Coding Help (https://python-forum.io/forum-8.html) +--- Thread: Can't visualize maps using Gmaps (/thread-21046.html) |
Can't visualize maps using Gmaps - mPlummers - Sep-11-2019 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? |