Skip to content

Commit 6b7b420

Browse files
committed
update ColumnDataSource to bokeh 2.0.0 syntax
1 parent dfbe6ec commit 6b7b420

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tethysapp/bokeh_tutorial/controllers.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ def callback(attr, old, new):
3232
data = df
3333
else:
3434
data = df.rolling(f'{new}D').mean()
35-
source.data = ColumnDataSource(data=data).data
35+
source.data = dict(ColumnDataSource(data=data).data)
3636

3737
slider.on_change("value", callback)
3838

0 commit comments

Comments
 (0)