nodify.gui.open_frontend
- nodify.gui.open_frontend(backend: Literal['socket', 'pyodide'], port: int | None = None, host: str | None = None, session_cls: str | Type | None = None, pyodide_packages: List[str] = [], pyodide_pypi_packages: List[str] = [])[source]
Opens the GUI frontend in the default browser.
Note that this function doesn’t launch a server backend! For that use
gui
instead.- Parameters:
backend – The backend to tell the GUI to use.
port – If the backend is “socket”, port to use to communicate with the backend.
host – If the backend is “socket”, host to use to communicate with the backend.
session_cls –
If the backend is “pyodide”, the session class to instantiate to create the session.
If it is a string, it must be the full path to the session class, including the module.
pyodide_packages – If the backend is “pyodide”, the packages to load from the pyodide distribution.
pyodide_pypi_packages – If the backend is “pyodide”, the packages to install from PyPI in the pyodide environment.