@@ -134,6 +134,7 @@ def callback_c(*args, **kwargs):
134134 html .Div (id = 'button_local_counter' , children = "Press any button to start" ),
135135 ], className = "" )
136136
137+ #pylint: disable=too-many-arguments
137138@liveIn .expanded_callback (
138139 dash .dependencies .Output ('button_local_counter' , 'children' ),
139140 [dash .dependencies .Input ('red-button' , 'n_clicks' ),
@@ -186,7 +187,7 @@ def callback_liveIn_button_press(red_clicks, blue_clicks, green_clicks,
186187 datetime .fromtimestamp (0.001 * timestamp ))
187188
188189liveOut = DjangoDash ("LiveOutput" ,
189- ) # serve_locally=True)
190+ serve_locally = True )
190191
191192def _get_cache_key (state_uid ):
192193 return "demo-liveout-s4-%s" % state_uid
@@ -210,6 +211,7 @@ def generate_liveOut_layout():
210211
211212liveOut .layout = generate_liveOut_layout
212213
214+ #pylint: disable=unused-argument
213215#@liveOut.expanded_callback(
214216@liveOut .callback (
215217 dash .dependencies .Output ('internal_state' , 'children' ),
@@ -270,7 +272,7 @@ def callback_show_timeseries(internal_state_string, state_uid, **kwargs):
270272
271273 for colour , values in state .items ():
272274 timestamps = [datetime .fromtimestamp (int (0.001 * ts )) for _ , ts , _ in values if ts > 0 ]
273- users = [user for user , ts , _ in values if ts > 0 ]
275+ # users = [user for user, ts, _ in values if ts > 0]
274276 levels = [level for _ , ts , level in values if ts > 0 ]
275277 colour_series [colour ] = pd .Series (levels , index = timestamps ).groupby (level = 0 ).first ()
276278
0 commit comments