Search code examples
pythonpython-3.xjupyter-notebookmapsfolium

Visualization issue with folium on jupyter notebook


I am trying to mark a location on a interactive map. So I did some research and finally managed to output a map. Like this:

m = folium.Map(location=[51.0, 9.0], max_zoom=6)
m

Then I went on and tried to mark a location on the map like this:

m = folium.Map(location=[51.0, 9.0], max_zoom=6)
folium.Marker([51, 8]).add_to(m)
m

But instead of a map I get a white space as output:

enter image description here

And I went on multiple websites but most of them did it like that. So does someone know why it doesn't work and could tell me?


Solution

  • It happens to get this kind of visualization issue with edge browser.

    Try Firefox (or chrome), instead.