You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
FYI, you can not use a second separate SimpleHTTPServer if you use IPython's relative files/ url path. This is a directory mapped to the contents of the directory where the server has been started.
I have noticed that iPython caches the page. In an ESDA environment the hacky trick around this was to use a random number generator to append some value to osm.html, eg. osm1234.html. Perhaps that solves the issue?
I think I may have phrased that poorly. I was mostly just saying that the SimpleHTTPServer wasn't needed if you use files/.
Thanks for posting this sample code though, was looking for a starting point to put a slippy map into IPython, everyone else seems to use matplotlib or something and just renders bitmap images.
Note that the first map works, because it's embedded into the notebook. But the second doesn't quite work because nbviewer handles files/ strangely I think. Works fine locally though.
FYI, you can not use a second separate SimpleHTTPServer if you use IPython's relative
files/
url path. This is a directory mapped to the contents of the directory where the server has been started.For example, use this code:
I couldn't quite get this to work with nbviewer though, so your results may vary.
I'm also trying to skip generating files on disk entirely, using folium's internal
map.HTML
attribute, but that doesn't quite work in all cases.The text was updated successfully, but these errors were encountered: