I am running a simple example:
import gmaps
import gmaps.datasets
gmaps.configure(api_key="...")
earthquake_df = gmaps.datasets.load_dataset_as_df( 'earthquakes' )
locations = earthquake_df[[ 'latitude' , 'longitude' ]]
weights = earthquake_df[ 'magnitude' ]
fig = gmaps.figure()
fig.add_layer(gmaps.heatmap_layer(locations, weights=weights))
fig
but instead of seeing a heatmap, the output shows this:
Figure(layout=FigureLayout(height='420px'))
I am using Spyder (Python 3.7)