Skip to content

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

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

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

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

p-himik opened this issue Jun 22, 2020 · 1 comment · 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))
Copy link

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Oct 26, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants