I’m attempting to embed a bokeh document within a flask app. I’m using script, div = components(plot) and then renderTemplate(html,script,div)
The chart makes it into my index html nicely, and the hovertool appears to be working on the localhost, however, the widgets are not active and do not update the graph accordingly. Do I need to rewrite the input widgets to respond as javascript callbacks? I believe this is possible, but I was hoping there was an easier way. Why are the widgets not working?
Full project zip is too large. Here are some snips.
The components function is only intended and useful for embedding standalone Bokeh content, i.e. not non-Bokeh server content with real python callbacks. For that, Bokeh server apps have to be embedded with one of the functions specifically intended for that:
I'm attempting to embed a bokeh document within a flask app. I'm using script, div = components(plot) and then renderTemplate(html,script,div)
The chart makes it into my index html nicely, and the hovertool appears to be working on the localhost, however, the widgets are not active and do not update the graph accordingly. Do I need to rewrite the input widgets to respond as javascript callbacks? I believe this is possible, but I was hoping there was an easier way. Why are the widgets not working?
Full project zip is too large. Here are some snips.