mesa-examples
mesa-examples copied to clipboard
Remove or update outdated visualisation from examples
Currently a lot of our examples still use the old, now removed visualisation. We should either remove, or even better, replace those visualisations with the new SolaraViz visualisation.
All old server.py visualisations should be replaced with app.py files in which SolaraViz is used.
Resources
- Visualisation source code:
mesa/visualization/solara_viz.py - Visualization Tutorial
For reference, these examples currently already use the updated visualisation:
- boid_flockers
- boltzmann_wealth_model_experimental
- hotelling_law
- schelling_experimental
- sugarscape_g1mt
- virus_on_network
We should also start to
- https://github.com/projectmesa/mesa-examples/issues/137
With https://github.com/projectmesa/mesa/pull/2214 merged and Mesa 3.0.0a2 released, you can now also specify “shapes” in a portrayal for SolaraViz.
This applies to gis examples too. Need to convert old visualizations to Solara:
- [x] AgentsAndNetworks
- [x] GeoSchelling
- [x] GeoSchellingPoints
- [x] GeoSIR (either remove or copy over from mesa-geo introductory tutorial)
- [x] Population
- [x] Rainfall
- [x] UrbanGrowth
@wang-boyu do you and maybe @tpike3 want to pick that up? Then I will see if I can make the, testable in CI.
Hello People, Myself Teja Sri Pacharu, sorry for disturbing you in the middle of your enhancement processes of Mesa, but I would like to work on this, coz I have seen that the 'Bank reserves' example is still using the older visualization (server.py). Is the working on this issue still active?? if so, I would like learn and work on it...
Go ahead, start with a simple example.
Thanks
I think you’re still using an older Mesa version, and need to update to the latest (3.1.1].
@EwoutH How should be the scheduling of the agents in El Farol ??, Like I am working on the Solara Visualisation of El Farol Model (as it is simple), and I am getting lost near scheduling agents , can you share some references and guidance for making the El Farol model visualisation with Solara framework, please!!?
@TejasriPacharu, I would love to help you, but your question is pretty vague, so I don't know exactly what you mean. Could you share the following things:
- Goal: What are you trying to achieve exactly?
- Problem: What specific issue are you encountering with scheduling agents? (e.g., confusion about agent activation order, time steps, or interaction logic).
- What You’ve Tried: What have you already implemented or explored? Share any relevant code snippets or references you've checked.
- Specific Help Needed: What kind of guidance or resources are you looking for? (e.g., example models, documentation, or theoretical background).