trulens.dashboard¶
trulens.dashboard
¶
Functions¶
run_dashboard
¶
run_dashboard(
session: Optional[TruSession] = None,
port: Optional[int] = None,
address: Optional[str] = None,
force: bool = False,
_dev: Optional[Path] = None,
_watch_changes: bool = False,
) -> 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:
|
_dev
|
If given, runs the dashboard with the given
TYPE:
|
_watch_changes
|
If
TYPE:
|
RETURNS | DESCRIPTION |
---|---|
Process
|
The Process executing the streamlit 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 |