Skip to content

Commit 46bfa0b

Browse files
authored
add local file prefix for Map.show_in_browser (#1704)
1 parent 1a9bed8 commit 46bfa0b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

folium/folium.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -406,7 +406,7 @@ def render(self, **kwargs) -> None:
406406
def show_in_browser(self) -> None:
407407
"""Display the Map in the default web browser."""
408408
with temp_html_filepath(self.get_root().render()) as fname:
409-
webbrowser.open(fname)
409+
webbrowser.open("file://" + fname)
410410
print(
411411
"Your map should have been opened in your browser automatically."
412412
"\nPress ctrl+c to return."

0 commit comments

Comments
 (0)