Describe the bug
Three examples are broken because they use mesa.visualization which was removed in Mesa 3.x.
Affected examples:
- hex_snowflake
- shape_example
- charts
To Reproduce
hex_snowflake:
- cd examples/hex_snowflake
- python run.py
shape_example:
- cd examples/shape_example
- python run.py
charts:
- cd examples/charts
- python run.py
Error
AttributeError: module 'mesa' has no attribute 'visualization'
Expected behavior
All three examples should run without errors.
Environment
- Mesa version: 3.5.0
- Python version: 3.x
- OS: Windows
Possible fix
Migrate visualization from deprecated mesa.visualization (ModularServer, CanvasGrid, Slider) to the modern Solara-based approach using SolaraViz, make_space_component, and make_plot_component as used in other working examples in the repo.