MCPcopy Index your code
hub / github.com/pywebio/PyWebIO / callback

Function callback

test/11.charts.py:34–39  ·  view source on GitHub ↗
(attr, old, new)

Source from the content-addressed store, hash-verified

32 plot.line('time', 'temperature', source=source)
33
34 def callback(attr, old, new):
35 if new == 0:
36 data = df
37 else:
38 data = df.rolling('{0}D'.format(new)).mean()
39 source.data = ColumnDataSource.from_df(data)
40
41 slider = Slider(start=0, end=30, value=0, step=1, title="Smoothing by N Days")
42 slider.on_change('value', callback)

Callers 1

output.tsFile · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…