Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] Band is not updated when the model is changed #10215

Closed
p-himik opened this issue Jun 22, 2020 · 0 comments · Fixed by #10216
Closed

[BUG] Band is not updated when the model is changed #10215

p-himik opened this issue Jun 22, 2020 · 0 comments · Fixed by #10216

Comments

@p-himik
Copy link
Contributor

p-himik commented Jun 22, 2020

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))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants