I'm working on gmaps in python and I want to display the result.
import gmaps.datasets
gmaps.configure(api_key='***')
# Latitude-longitude pairs
geneva = (46.2, 6.1)
montreux = (46.4, 6.9)
zurich = (47.4, 8.5)
fig = gmaps.figure()
geneva2zurich = gmaps.directions_layer(geneva, zurich)
fig.add_layer(geneva2zurich)
fig
It seems like it works well in Jupyter, but in pycharm it displays nothing.
Why this happens? How can I export the result?