simpm.dashboard — Dashboard helper components

simpm.dashboard provides Plotly Dash dashboards for SimPM runs. Use simpm.run(..., dashboard=True|False) to launch a post-run dashboard without wiring up Dash yourself. Advanced users can also call the dashboard helpers directly when they already manage the environment.

Usage

import simpm

# After running a simulation, open the post-run dashboard
simpm.run(project, dashboard=True)

# Expert users may call the dashboard helpers directly
# simpm.dashboard.run_post_dashboard(project)

run_post_dashboard

Launch the Streamlit dashboard for one or many environments.

build_app

Build a Streamlit dashboard bound to the given environment.

Streamlit dashboard for SimPM runs.

simpm.dashboard.build_app(env) StreamlitDashboard

Build a Streamlit dashboard bound to the given environment.

simpm.dashboard.run_post_dashboard(env_or_envs, host: str = '127.0.0.1', port: int = 8050, start_async: bool = True)

Launch the Streamlit dashboard for one or many environments.

Aggregating many runs

When simpm.run() executes a factory multiple times (for example, in a Monte Carlo experiment), the dashboard automatically aggregates the results. Each replication is assigned a unique run_id and all entity, resource, and environment logs are merged into a single dataset so the dashboard tables, charts, and download buttons display every run—not just the last one. Use the “Run” selector in the Overview panel to focus on a specific replication or pick “All runs” to view the combined history.