Skip to content

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

@p-himik

Description

@p-himik

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))

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions