We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4085d6b commit a385d17Copy full SHA for a385d17
mesa/experimental/jupyter_viz.py
@@ -183,7 +183,7 @@ def make_model():
183
184
# 4. Status indicators
185
#: current round step count
186
- step = solara.use_reactive(False)
+ step = solara.use_reactive(True)
187
188
def on_value_play(change):
189
if viz.model.running:
@@ -212,12 +212,7 @@ def on_value_play(change):
212
playing=playing.value,
213
on_playing=playing.set,
214
)
215
- widgets.IntText(
216
- value=step.value,
217
- description="Step:",
218
- disabled=True,
219
- interval=play_interval,
220
- )
+ solara.Markdown(md_text="**Step:** %d" % step.value)
221
# threaded_do_play is not used for now because it
222
# doesn't work in Google colab. We use
223
# ipywidgets.Play until it is fixed. The threading
0 commit comments