-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Solara UI crashing while rendering Altair charts for certain Mesa Visualization examples #3046
Copy link
Copy link
Closed
Labels
Description
Describe the bug
When using Mesa’s Solara-based visualization stack with Altair charts fails to render for some of the examples. The Solara UI fails to load entirely and causes a crash.
- So far i have only encountered this issue with only specific models, namely
- mesa/examples/basic/virus_on_network
- mesa/examples/basic/boltzmann_wealth_model
- mesa/examples/advanced/pd_grid
- mesa/examples/advanced/sugarscape_g1mt
Expected behavior
Altair charts should render correctly in Solara-based Mesa visualizations when following the standard Mesa development setup, without running into UI crashes.
To Reproduce
Environment (example):
- Python: 3.11
- Mesa:
mainbranch (current) - Altair: 6.0.0 (currently being installed implicitly via
pip install -e ".[dev]") - Solara: 1.30.0 (currently being installed implicitly via `pip install -e ".[dev]")
Steps:
-
Clone the Mesa repository.
-
Install dependencies using:
pip install -e ".[dev]" -
Run any Mesa example model that uses Solara + Altair for visualization.
-
Launch the Solara frontend (
solara run ...or via the provided example runner). -
Observe that the Altair charts do not render and the UI crashes.

Reactions are currently unavailable