mardi 12 juillet 2016

Folium map not displaying automatically


This is my first time to use folium to display map using python. import folium test_map = folium.Map(location = [0, 0], zoom_start = 10) test_map But it returns <folium.folium.Map object at 0x000000000BC70518> To view the map, I need to save it and open it manually. track_map.save("test_map.html") webbrowser.open("test_map.html") Is there a way or single function to make folium map display automatically in a browser? When I use plotly, plotly.offline.plot(sth) will display the charts in the browser right after the command is entered, can folium do the same thing? Thank you!

Aucun commentaire:

Enregistrer un commentaire