ALL software version info (bokeh, python, notebook, OS, browser, any other relevant packages)
Bokeh 2.1.0
Complete, minimal, self-contained example code that reproduces the issue
from bokeh.io import curdoc
from bokeh.layouts import column
from bokeh.models import ColumnDataSource, Button, Band
from bokeh.plotting import figure
ds = ColumnDataSource(dict(x=[0, 1], y=[0, 1]))
p = figure(x_range=(-1, 2), y_range=(-1, 10))
bn = Band(lower=0, upper=1, base='x', source=ds)
p.add_layout(bn)
b = Button()
def update():
bn.upper = bn.upper + 1
b.on_click(update)
curdoc().add_root(column(p, b))
ALL software version info (bokeh, python, notebook, OS, browser, any other relevant packages)
Bokeh 2.1.0
Complete, minimal, self-contained example code that reproduces the issue