MCPcopy
hub / github.com/python-visualization/folium / show_in_browser

Method show_in_browser

folium/folium.py:416–429  ·  view source on GitHub ↗

Display the Map in the default web browser.

(self)

Source from the content-addressed store, hash-verified

414 return self._to_png()
415
416 def show_in_browser(self) -> None:
417 """Display the Map in the default web browser."""
418 with temp_html_filepath(self.get_root().render()) as fname:
419 webbrowser.open("file://" + fname)
420 print(
421 "Your map should have been opened in your browser automatically."
422 "\nPress ctrl+c to return."
423 )
424 # Block until stopped by user, afterwards remove the temporary file
425 try:
426 while True:
427 time.sleep(100)
428 except KeyboardInterrupt:
429 pass
430
431 def fit_bounds(
432 self,

Callers

nothing calls this directly

Calls 2

temp_html_filepathFunction · 0.90
renderMethod · 0.45

Tested by

no test coverage detected