☰Read-only archive⌕
Looking for help with Bokeh?

This is a read-only archive. Ask questions and join the conversation on GitHub.

Visit Community Support on GitHub →
Archived discussions · Captured October 28, 2026

Bokeh 2.0.0 breaks application

Community Support
d-que
d-que

Hi,

I am running a bokeh application with an html as output. After updating bokeh from 1.4.0 to 2.0.0 my and changing a couple of callbacks, my output gives me an empty html. Python does not show any errors.

The errors I obtain in JS console are the following

[bokeh] – "Failed to fetch JSON from null with code 0"

and

Unhandled Promise Rejection: TypeError: undefined is not an object

I do not really know what to do about it. Many thanks for your help in advance!

Best wishes,
Daniel

⌁   Link to post
Bryan
Bryan

@d-que looking at your code, it seems to run if this line is commented out:

# dropdown.js_on_change('value', drop_cb)

And looking at the ref docs for Dropdown, I don’t see any value property. The CI integration tests for this widget use the menu_item_clieck event, like this:

button.js_on_event('menu_item_click', CustomJS(code=...))

and

def cb(event):
    item = event.item
    if item == "item_1_value":
        source.data = dict(x=[10, 20], y=[10, 10])
    elif item == "item_2_value":
        source.data = dict(x=[100, 200], y=[100, 100])
    elif item == "item_3_value":
        source.data = dict(x=[1000, 2000], y=[1000, 1000])
button.on_event('menu_item_click', cb)

We could probably do a better job about warning earlier and more loudly if a user tries to set up a change handler for a property that does not exist, but that appears to be the root of the issue here.

⌁   Link to post

End of archived discussion · Replies are disabled