Skip to content
This repository was archived by the owner on Aug 29, 2025. It is now read-only.
This repository was archived by the owner on Aug 29, 2025. It is now read-only.

Ability to set a maximum number of intervals? #222

Closed

Description

@chriddyp

As suggested by a community member:

When I put it this way, the cleanest solution to my problem would be if dcc.Interval() supported the idea of counting a certain number of ticks and then stopping by itself, i.e. had something like a max_intervals parameter. I’m not sure if you have any other use-cases for that but if so, maybe it’s a feature suggestion?

Full discussion: https://community.plot.ly/t/should-i-use-an-interval-for-a-one-off-delay/11375/6

Seems like a pretty good idea, coul dbe useful for general delays and fits nicely into the existing component API

Activity

  1. claresloggett commented on Jul 2, 2018

    @claresloggett

    Might also be useful to people trying to "turn off" the Interval, e.g. https://community.plot.ly/t/how-to-turn-off-interval-event/5565 ?

    That discussion is about turning it off in response to an event, but if there were a max_intervals parameter we could presumably turn the timer off manually by setting max_intervals=n_intervals.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions