Skip to content

Instantly share code, notes, and snippets.

@randyzwitch
Created March 5, 2020 20:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save randyzwitch/7e4b1d00119bf51846a52b4034fe74a2 to your computer and use it in GitHub Desktop.
Save randyzwitch/7e4b1d00119bf51846a52b4034fe74a2 to your computer and use it in GitHub Desktop.
Dash Interval example
#https://github.com/omnisci/F1-demo/blob/726c56ba4e8c878abeef81b7cf680bd4d36a4bd2/f1dash/track.py#L56-L60
#dcc.Interval creates an object with no display characteristics, triggering a callback every 'interval' seconds
#for anything listening for the id 'track-interval'
trackgraph = html.Div([
dcc.Graph(id='track-graph',
config={
'displayModeBar': True
}
),
#controls when track and telemetry updates
dcc.Interval(
id='track-interval',
interval=7*1000, # in milliseconds
n_intervals=0
)
])
@ClinchCream
Copy link

but when I create a new page and specify dcc.Location() along with these it didn't work for me
Any solution of it ?
My issue is some how similar to this - plotly/dash#277

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