MCPcopy Create free account
hub / github.com/IfcOpenShell/IfcOpenShell / open_web_browser

Method open_web_browser

src/bonsai/bonsai/tool/web.py:765–772  ·  view source on GitHub ↗

Opens a web browser and navigates to the specified URL. :param port: The port number to be used in the URL. :param page: The page name to be appended to the URL. Default is an empty string which points to the index page.

(cls, port: int, page: str = "")

Source from the content-addressed store, hash-verified

763
764 @classmethod
765 def open_web_browser(cls, port: int, page: str = "") -> None:
766 """
767 Opens a web browser and navigates to the specified URL.
768
769 :param port: The port number to be used in the URL.
770 :param page: The page name to be appended to the URL. Default is an empty string which points to the index page.
771 """
772 webbrowser.open(f"http://127.0.0.1:{port}/{page}")
773
774 @classmethod
775 def send_theme_data(cls) -> None:

Callers 4

executeMethod · 0.80
executeMethod · 0.80
connect_websocket_serverFunction · 0.80
open_web_browserFunction · 0.80

Calls 1

openMethod · 0.80

Tested by

no test coverage detected