Python Forum
Can't visualize maps using Gmaps
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Can't visualize maps using Gmaps
#1
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?
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  I am getting a valueError. And not sure why? My goal is to visualize the correlation ReadytoCode 0 473 Dec-11-2023, 05:33 AM
Last Post: ReadytoCode
  Help with nested maps Unkovic 10 1,385 Nov-01-2023, 03:45 PM
Last Post: Unkovic
  Python Networkx: Visualize an edge weight with a bubble/circle uvw 0 2,000 Sep-01-2021, 06:26 AM
Last Post: uvw
  Best way to map trajectory data on Google Maps Gduffley 1 2,675 Feb-05-2020, 12:36 AM
Last Post: scidam
  Visualize Geo Map/Calculate distance zarize 1 1,897 Dec-05-2019, 08:36 PM
Last Post: Larz60+
  Plot multiple csv into one graph problem with visualize linkxxx86 1 5,720 Oct-14-2019, 05:54 PM
Last Post: linkxxx86
  Search "Places near by me" or "where am I" in google maps barry76 1 2,689 Feb-07-2019, 04:10 PM
Last Post: snippsat
  Non-Geographic Heat Maps JackValadez 0 2,092 Oct-17-2018, 06:03 PM
Last Post: JackValadez
  How get attributes of maps from loop statement LB_994 3 3,172 Aug-21-2018, 03:24 PM
Last Post: LB_994
  How to visualize cluster centres using word cloud in python? shanky 0 4,424 Aug-17-2018, 06:17 PM
Last Post: shanky

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020