Skip to content

Fix color_patches SolaraViz portrayal + update README#346

Open
Nandha-kumar-S wants to merge 3 commits intomesa:mainfrom
Nandha-kumar-S:fix-color-patches-solara-readme
Open

Fix color_patches SolaraViz portrayal + update README#346
Nandha-kumar-S wants to merge 3 commits intomesa:mainfrom
Nandha-kumar-S:fix-color-patches-solara-readme

Conversation

@Nandha-kumar-S
Copy link

Summary

Updates the color_patches example to run with Mesa 3.x SolaraViz and updtaed the README run instructions.

Motive

The README referenced the legacy mesa runserver flow, and the Solara app portrayal used CanvasGrid-style keys that are ignored in Mesa 3.x.

Implementation

  • Updated examples/color_patches/app.py portrayal function to return the supported SolaraViz keys (color, size).
  • Updated examples/color_patches/Readme.md to use solara run app.py and corrected the listed files.

Usage Examples

solara run app.py

@Nandha-kumar-S
Copy link
Author

Nandha-kumar-S commented Mar 4, 2026

hi @EwoutH Can you review this PR please? as this example's readme.md may mislead the users who try to run this model. I know that maintainers are busy, but hoping for a review when you get time :)

@tpike3
Copy link
Member

tpike3 commented Mar 4, 2026

Thanks @Nandha-kumar-S! This is definitely overdue.

Could you please fix the parameters (heigh and width) they do not show up in the interface. If you have time could you also clean up some of the outdated comments like the line 66 in app.py and the Attribute error in lines 102 through 110.

@Nandha-kumar-S
Copy link
Author

hi @tpike3 , i have updated the changes as requested. Please review them. Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants