Skip to content

fix gis examples by passing solaraviz components as keyword argument#311

Merged
wang-boyu merged 1 commit intomesa:mainfrom
wang-boyu:fix-gis-viz
Jan 29, 2026
Merged

fix gis examples by passing solaraviz components as keyword argument#311
wang-boyu merged 1 commit intomesa:mainfrom
wang-boyu:fix-gis-viz

Conversation

@wang-boyu
Copy link
Member

This is a temporary workaround for mesa/mesa-geo#295, by changing components from positional argument to keyword argument in all GIS examples. For example:

from

page = SolaraViz(
    model,
    [
        make_geospace_component(schelling_draw, zoom=4),
    ]
)

to

page = SolaraViz(
    model,
    components=[
        make_geospace_component(schelling_draw, zoom=4),
    ],
)

For Mesa-Geo I'll remove the pin to Mesa<3.3 dependency and note the workaround. But I'll keep mesa/mesa-geo#295 open until we have a better visualization API for Mesa-Geo.

@wang-boyu wang-boyu merged commit 2bc88ae into mesa:main Jan 29, 2026
3 of 4 checks passed
@wang-boyu wang-boyu deleted the fix-gis-viz branch January 29, 2026 02:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants