Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Viz: Implement Choice UserParam #2376

Open
EwoutH opened this issue Oct 16, 2024 · 1 comment
Open

Viz: Implement Choice UserParam #2376

EwoutH opened this issue Oct 16, 2024 · 1 comment

Comments

@EwoutH
Copy link
Member

EwoutH commented Oct 16, 2024

The old visualisation contained a Choice class which you could use to select one of multiple discrete/categorial options.

"activation_order": mesa.visualization.Choice(
"Activation regime",
value="Random",
choices=PdGrid.activation_regimes,
),

It would be nice to have that in the new SolaraViz module. Maybe an boolean Checkbox would also be useful. For full context, NetLogo has these options you can place:

image

@Corvince would you take a shot at this?

@quaquel
Copy link
Member

quaquel commented Oct 31, 2024

Many of these are already supported in the current code pace. Whe have space visualization and line plots for output. Text based output is available in solara and demonstrated in various examples (e.g. virus on a network).

SolaraViz supports Sliders for both int and float, a drop-down menu bar for select, and a selection via a checkbox.

So what is missing in your view?

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

No branches or pull requests

2 participants