
Hi,
when I try to embed bokeh graph to my jquery app.
I am getting this error message:
Uncaught TypeError: Cannot read property ‘connect’ of undefined
at e.t.connect (bokeh-0.12.13.min.js:1)
at e.finalize (bokeh-0.12.13.min.js:1)
at bokeh-0.12.13.min.js:1
at n (bokeh-0.12.13.min.js:1)
at n (bokeh-0.12.13.min.js:1)
at n (bokeh-0.12.13.min.js:1)
at n (bokeh-0.12.13.min.js:1)
at n (bokeh-0.12.13.min.js:1)
at r (bokeh-0.12.13.min.js:1)
at Function.t._initialize_references_json (bokeh-0.12.13.min.js:1)
···
here are the basic parts of my code:
…
…
script, div = components(plot)
Return the webpage
html= “”"
{bokeh_css}
{bokeh_js}
{script}
“”".format(script=script, div=div, bokeh_css=CDN.render_css(),bokeh_js=CDN.render_js())
html.replace(‘\r\n’, ‘’)
jsObj=json.dumps(html)
return jsObj
What am I doing wrong ?
kind regards
