gmaps icon indicating copy to clipboard operation
gmaps copied to clipboard

Can't visualize the map

Open AlcorDust opened this issue 6 years ago • 6 comments

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 in this page.

  • 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?

AlcorDust avatar Sep 10 '19 15:09 AlcorDust

Update, it doesn't work also using python3 command line editor.

AlcorDust avatar Sep 10 '19 15:09 AlcorDust

Instead of: fig try: fig_gmap

jonahbrennan avatar Sep 11 '19 04:09 jonahbrennan

fig_gmap

Hi jonahbrennan, i tried to do that but nothing changed

AlcorDust avatar Sep 11 '19 11:09 AlcorDust

Did you ever get it to work? I'm experiencing the same issue.

meesaltena avatar Mar 17 '20 20:03 meesaltena

Did you ever get it to work? I'm experiencing the same issue.(2)

matheusmpandrade avatar Jun 21 '20 20:06 matheusmpandrade

works for me. What's the detailed configuration? I'm using: jupyter --version 4.4.0

jupyter nbextension list Known nbextensions: config dir: /usr/local/Cellar/python/3.7.7/Frameworks/Python.framework/Versions/3.7/etc/jupyter/nbconfig notebook section jupyter-js-widgets/extension enabled - Validating: OK jupyter-gmaps/extension enabled - Validating: OK config dir: /usr/local/etc/jupyter/nbconfig notebook section plotlywidget/extension enabled - Validating: OK jupyter-js-widgets/extension enabled - Validating: OK

OSX: 11.1.

Dunno what else it depends on.

timcoote avatar Jan 13 '21 10:01 timcoote