Quantcast
Channel: 🎛️ Dash - Plotly Community Forum
Viewing all articles
Browse latest Browse all 6271

Reset n_intervals in dcc.Interval

$
0
0

@jm25 wrote:

I have code which changes a dropdown menu every x seconds (5/10/20s etc). It does this by cycling through ~20 options.

I added the max_intervals entry for dcc.Interval to correspond with the number of options that are possible. However, when the code reaches the last number option, it stops updating on the interval. Is there a way to reset n_intervals to 0 after it reaches the last option, to cycle through the options again?

Posts: 2

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 6271

Trending Articles