File tree Expand file tree Collapse file tree 1 file changed +1
-6
lines changed Expand file tree Collapse file tree 1 file changed +1
-6
lines changed Original file line number Diff line number Diff line change @@ -181,14 +181,9 @@ def make_model():
181
181
# 3. Buttons
182
182
playing = solara .use_reactive (False )
183
183
184
- # 4. Status indicators
185
- #: current round step count
186
- step = solara .use_reactive (True )
187
-
188
184
def on_value_play (change ):
189
185
if viz .model .running :
190
186
viz .do_step ()
191
- step .value = viz .model .schedule .steps
192
187
else :
193
188
playing .value = False
194
189
@@ -212,7 +207,7 @@ def on_value_play(change):
212
207
playing = playing .value ,
213
208
on_playing = playing .set ,
214
209
)
215
- solara .Markdown (md_text = "**Step:** %d" % step . value )
210
+ solara .Markdown (md_text = f "**Step:** { viz . model . schedule . steps } " )
216
211
# threaded_do_play is not used for now because it
217
212
# doesn't work in Google colab. We use
218
213
# ipywidgets.Play until it is fixed. The threading
You can’t perform that action at this time.
0 commit comments