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():
181181 # 3. Buttons
182182 playing = solara .use_reactive (False )
183183
184- # 4. Status indicators
185- #: current round step count
186- step = solara .use_reactive (True )
187-
188184 def on_value_play (change ):
189185 if viz .model .running :
190186 viz .do_step ()
191- step .value = viz .model .schedule .steps
192187 else :
193188 playing .value = False
194189
@@ -212,7 +207,7 @@ def on_value_play(change):
212207 playing = playing .value ,
213208 on_playing = playing .set ,
214209 )
215- solara .Markdown (md_text = "**Step:** %d" % step . value )
210+ solara .Markdown (md_text = f "**Step:** { viz . model . schedule . steps } " )
216211 # threaded_do_play is not used for now because it
217212 # doesn't work in Google colab. We use
218213 # ipywidgets.Play until it is fixed. The threading
You can’t perform that action at this time.
0 commit comments