server
Host the dashboard frontend, API, and session files with aiohttp.
A launch token authenticates access to session data. Metadata is read-only; missing metadata is generated before startup. The default host is loopback.
DashboardConfig
dataclass
¶
dashboard(session_dir, /, *, host='127.0.0.1', port=8080, browser=False, dev=False)
¶
Browse a session snapshot in the dashboard. Stop with Ctrl+C.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
session_dir
|
Annotated[Path, Parameter(validator=Path(file_okay=False, dir_okay=True, exists=True))]
|
Existing session directory. Missing metadata is generated before startup. |
required |
host
|
str
|
Address to bind and use in the launch URL; defaults to loopback. |
'127.0.0.1'
|
port
|
Annotated[int, Parameter(validator=Number(gte=0, lte=65535))]
|
Listening port from 0 to 65535; zero chooses an available port. |
8080
|
browser
|
Annotated[bool, Parameter(negative=False)]
|
Open the printed launch URL automatically; disabled by default. |
False
|
dev
|
Annotated[bool, Parameter(negative=False)]
|
Start Vite with hot module replacement; requires a source checkout and npm ci. |
False
|