trulens.dashboard.run¶
trulens.dashboard.run
¶
Classes¶
Functions¶
run_dashboard
¶
run_dashboard(
session: Optional[TruSession] = None,
port: Optional[int] = None,
address: Optional[str] = None,
force: bool = False,
_dev: Optional[Path] = None,
) -> Process
Run a streamlit dashboard to view logged results and apps.
PARAMETER | DESCRIPTION |
---|---|
port |
Port number to pass to streamlit through |
address |
Address to pass to streamlit through |
force |
Stop existing dashboard(s) first. Defaults to
TYPE:
|
RETURNS | DESCRIPTION |
---|---|
Process
|
The Process executing the streamlit |
Process
|
dashboard. |
RAISES | DESCRIPTION |
---|---|
RuntimeError
|
Dashboard is already running. Can be avoided if |
stop_dashboard
¶
stop_dashboard(
session: Optional[TruSession] = None,
force: bool = False,
) -> None
Stop existing dashboard(s) if running.
PARAMETER | DESCRIPTION |
---|---|
force |
Also try to find any other dashboard processes not started in this notebook and shut them down too. This option is not supported under windows.
TYPE:
|
RAISES | DESCRIPTION |
---|---|
RuntimeError
|
Dashboard is not running in the current process. Can be avoided with |