EasyUI Bokeh conflict

Hi, I’ve used the embedding bokeh example and I get a wonderful chart on my single page ajax easyUI based application.

My app is a Flask application with a lot of javascript, mainly jquery and jquery easyUI.
Though there’s something strange, when I add this to my main template :

{{ plotResources|indent(4)|safe}}

This code brings bokeh.min.css, bokeh.min.js in my web page, but 2 trees in my app stop working, saying that $(…).tree( is not a function. This function is a jquery plugin added by easyUI.

How is Bokeh code altering this? The only code that bokeh brought is bokeh.min.css, bokeh.min.js

Hi,

···

On Tue, Jun 30, 2015 at 9:14 AM, [email protected] wrote:

Hi, I’ve used the embedding bokeh example and I get a wonderful chart on my single page ajax easyUI based application.

My app is a Flask application with a lot of javascript, mainly jquery and jquery easyUI.
Though there’s something strange, when I add this to my main template :

{{ plotResources|indent(4)|safe}}

This code brings bokeh.min.css, bokeh.min.js in my web page, but 2 trees in my app stop working, saying that $(…).tree( is not a function. This function is a jquery plugin added by easyUI.

How is Bokeh code altering this? The only code that bokeh brought is bokeh.min.css, bokeh.min.js

this is because bokeh.js pulls in jquery improperly (this used to work and was broken recently). This should be fixed for the upcoming release. You can track progress in https://github.com/bokeh/bokeh/pull/2437.

Mateusz

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/2704f4a1-02ba-4e6b-b469-a621424a0df0%40continuum.io.

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

All right, thanks a lot, it saves my day and I’m glad I will only need a little patience.
I found Bokeh relies on very good stuff I also use in every new project, like Jquery, Backbone, Flask…
Thinking of getting involved :-).
Have a nice day.

···

Le mardi 30 juin 2015 11:35:43 UTC+2, mateusz.paprocki a écrit :

Hi,

On Tue, Jun 30, 2015 at 9:14 AM, [email protected] wrote:

Hi, I’ve used the embedding bokeh example and I get a wonderful chart on my single page ajax easyUI based application.

My app is a Flask application with a lot of javascript, mainly jquery and jquery easyUI.
Though there’s something strange, when I add this to my main template :

{{ plotResources|indent(4)|safe}}

This code brings bokeh.min.css, bokeh.min.js in my web page, but 2 trees in my app stop working, saying that $(…).tree( is not a function. This function is a jquery plugin added by easyUI.

How is Bokeh code altering this? The only code that bokeh brought is bokeh.min.css, bokeh.min.js

this is because bokeh.js pulls in jquery improperly (this used to work and was broken recently). This should be fixed for the upcoming release. You can track progress in https://github.com/bokeh/bokeh/pull/2437.

Mateusz

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/2704f4a1-02ba-4e6b-b469-a621424a0df0%40continuum.io.

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

My current workaround is to put on top of everything, i.e. load afterwards.

···

On Tuesday, June 30, 2015 at 11:55:07 AM UTC+1, Julien Cochennec wrote:

All right, thanks a lot, it saves my day and I’m glad I will only need a little patience.
I found Bokeh relies on very good stuff I also use in every new project, like Jquery, Backbone, Flask…
Thinking of getting involved :-).
Have a nice day.

Le mardi 30 juin 2015 11:35:43 UTC+2, mateusz.paprocki a écrit :

Hi,

On Tue, Jun 30, 2015 at 9:14 AM, [email protected] wrote:

Hi, I’ve used the embedding bokeh example and I get a wonderful chart on my single page ajax easyUI based application.

My app is a Flask application with a lot of javascript, mainly jquery and jquery easyUI.
Though there’s something strange, when I add this to my main template :

{{ plotResources|indent(4)|safe}}

This code brings bokeh.min.css, bokeh.min.js in my web page, but 2 trees in my app stop working, saying that $(…).tree( is not a function. This function is a jquery plugin added by easyUI.

How is Bokeh code altering this? The only code that bokeh brought is bokeh.min.css, bokeh.min.js

this is because bokeh.js pulls in jquery improperly (this used to work and was broken recently). This should be fixed for the upcoming release. You can track progress in https://github.com/bokeh/bokeh/pull/2437.

Mateusz

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/2704f4a1-02ba-4e6b-b469-a621424a0df0%40continuum.io.

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