Repository navigation
docs: standardize run instructions across Mesa examples - #3539
Conversation
… for boid_flockers example
…ample-run-instructions
falloficaruss
left a comment
There was a problem hiding this comment.
these READMEs now tell users only to assume “Mesa is already installed,” but the examples they document still depend on optional visualization/network extras that are not part of the base mesa install. For example, boid_flockers/Readme.md now omits any install guidance, while its app imports mesa.visualization and matplotlib in boid_flockers/app.py, and the package metadata still shows those under optional viz extras in pyproject.toml. The same problem exists for networked examples like virus_on_network/Readme.md versus virus_on_network/app.py. As written, a user who installed plain mesa can follow these new instructions and immediately hit missing-module errors for solara, matplotlib, or networkx.
Thanks for pointing this out — that's a good catch. You're right that several examples rely on optional visualization or network dependencies (e.g., To address this, I’ll update the How to Run sections to recommend installing Mesa with the appropriate extras (e.g., I’ll push an update to the PR shortly to reflect this. |
|
Thank you for the review and for merging this! I really appreciate the feedback throughout the process — it helped me understand the documentation structure and dependency handling much better. Looking forward to contributing more to Mesa. |
* docs: add clear run instructions for alliance_formation example * docs: add clear run instructions for boid_flockers example * docs: remove redundant mesa install and update run instructions * docs: remove redundant install steps and standardize run instructions for boid_flockers example * docs: standardize run instructions across Mesa examples * docs: include recommended dependencies for running examples --------- Co-authored-by: Tom Pike <[email protected]>
* docs: add clear run instructions for alliance_formation example * docs: add clear run instructions for boid_flockers example * docs: remove redundant mesa install and update run instructions * docs: remove redundant install steps and standardize run instructions for boid_flockers example * docs: standardize run instructions across Mesa examples * docs: include recommended dependencies for running examples --------- Co-authored-by: Tom Pike <[email protected]> (cherry picked from commit 410c99a)
This PR standardizes the "How to Run" instructions across multiple Mesa example READMEs.
Changes
solara run app.py
Following maintainer feedback, this consolidates the documentation updates into a single PR and ensures consistent run instructions across examples.