INNER CODE UNIT · Python
run_in_browser
rio-labs/rio · rio/app.py:887
def run_in_browser(
self,
*,
host: str = "localhost",
port: int | None = None,
quiet: bool = False,
) -> None:
"""
Runs an internal webserver and opens the app in the default browser.
This method creates and immediately runs a webserver that serves this
app, and then opens the app in the default browser. This is a quick and
easy way to access your app.
```py
app = rio.App(
name="My App",
build=MyAppRoot,