I cannot embed bokeh graph to my jquery app

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= “”"

<!doctype html>

{bokeh_css}

{div}

{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

try to add bokeh_js into tag, under bokeh_css

···

2018-03-12 13:56 GMT+02:00 [email protected]:

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= “”"

<!doctype html>

{bokeh_css}

{div}

{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

You received this message because you are subscribed to the Google Groups “Bokeh Discussion - Public” group.

To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].

To post to this group, send email to [email protected].

To view this discussion on the web visit https://groups.google.com/a/continuum.io/d/msgid/bokeh/c925b479-9eb5-4e6a-b6ec-272b1a0d6a58%40continuum.io.

For more options, visit https://groups.google.com/a/continuum.io/d/optout.