I’ve been using bokeh plots inside Django-generated web pages with no problems, but whenever I try to add a widget, nothing happens (not even an error message). For example the following code would produce the desired result if ‘cb’ were a bokeh plot, but nothing at all with ‘cb’ as widget:
Python/Bokeh:
from bokeh.embed import components
from bokeh.models.widgets import Button
from bokeh.layouts import Row
cb=Button(label=“Teste”)
layout=Row(cb)
script,div=components(layout,CDN)
CSS:
(with links to https://cdn.pydata.org/bokeh/release/bokeh-widgets-1.3.4.min.js inside the script tag)
Django Template:
{{ div | safe }}
{{ script | safe }}
Any help is appreciated!