nodify.gui.launch_gui

nodify.gui.launch_gui(backend: Literal['socket', 'pyodide'] = 'socket', port: int | None = None, host: str | None = None, session_cls: str | Type | None = None, pyodide_packages: List[str] = [], pyodide_pypi_packages: List[str] = [])[source]

Launches the GUI, including both the frontend and the backend.

Parameters:
  • backend – The backend to use. If “socket”, the server will be launched.

  • port – If the backend is “socket”, port to use to communicate between frontend and backend.

  • host – If the backend is “socket”, host to use to communicate between frontend and backend.

  • session_cls – The session class to instantiate to create the session. If not provided, the default session will be used.

  • 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.