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!
@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:
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.
I fell into this while upgrading to 2.x. For the CustomJS js_on_event, how to does one reference the selected item from inside the javascript. No longer cb_obj.value any longer…