multi_line callback erroneous behavior

Hi,

I am developing an application using Bokeh. I happen to use multi_line glyph in my code. When I try to update CDS associated with multi_line in a callback function, python environment cannot read any update from a javascript array. The reason is because an Array is an object with Array class in javascript and a columndatasource which initially declared in python environment does not recognize a javascript Array. Is there any example you can provide me where I can populate a multi_line’ source in a javascript callback?

Thanks in advance

Hi,

There is always a much better chance that someone will decide to try to spend time to help if you provide code for what you've tried, and ideally, *complete* code that they can run an tinker with and modify.

Thanks,

Bryan

···

On May 13, 2018, at 09:10, [email protected] wrote:

Hi,

I am developing an application using Bokeh. I happen to use multi_line glyph in my code. When I try to update CDS associated with multi_line in a callback function, python environment cannot read any update from a javascript array. The reason is because an Array is an object with Array class in javascript and a columndatasource which initially declared in python environment does not recognize a javascript Array. Is there any example you can provide me where I can populate a multi_line' source in a javascript callback?

Thanks in advance

--
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/eda04694-eaff-4bff-8d19-7fb8b7e16409%40continuum.io\.
For more options, visit https://groups.google.com/a/continuum.io/d/optout\.

Thanks for the advice, for now I am able to resolve the issue but for incoming posts I will post also the code

···

On Sunday, May 13, 2018 at 7:13:24 PM UTC+3, Bryan Van de ven wrote:

Hi,

There is always a much better chance that someone will decide to try to spend time to help if you provide code for what you’ve tried, and ideally, complete code that they can run an tinker with and modify.

Thanks,

Bryan

On May 13, 2018, at 09:10, [email protected] wrote:

Hi,

I am developing an application using Bokeh. I happen to use multi_line glyph in my code. When I try to update CDS associated with multi_line in a callback function, python environment cannot read any update from a javascript array. The reason is because an Array is an object with Array class in javascript and a columndatasource which initially declared in python environment does not recognize a javascript Array. Is there any example you can provide me where I can populate a multi_line’ source in a javascript callback?

Thanks in advance


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/eda04694-eaff-4bff-8d19-7fb8b7e16409%40continuum.io.

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