I'm trying to use google map API to visualize some data in jupyter notebook. Here is the code I used to display basic map in jupyter:
import gmaps
import os
import json
import gmaps.datasets
gmaps.configure(api_key="AIz....")
fig=gmaps.figure()
fig
After I ran the code, nothing was displayed. I used my own google API key and couldn't figure out why the map isn't displayed. I'm new to the geojson field, so any idea or thoughts is appreciated.
Did you make sure Widgets are enabled in your jupyter? try this before you run Jupyter:
jupyter nbextension enable --py gmaps
jupyter nbextension enable --py widgetsnbextension
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With