Doing something with data selected using the lasso tool

Hi,

I wonder if it is possible to do something with the data selected with the lasso tool.
For instance, I want to select a group of data points and I want to compute the mean value of those selected points.

Thanks for your help,

jg

There are two possibilities. You can use a Bokeh server, similar to this example:

  https://github.com/bokeh/bokeh/blob/master/examples/plotting/server/selection_histogram.py

Another (upcoming) option is the "JS callback" to be able to provide rich interactions without a server. This feature is in master, and is in the latest "dev build" (but not the last stable release). Right now you can only specify callbacks on widgets, but it is intended to add callback capability for selection events too.

Thanks,

Bryan

···

On Apr 29, 2015, at 5:05 PM, joegi.geo via Bokeh Discussion - Public <[email protected]> wrote:

Hi,

I wonder if it is possible to do something with the data selected with the lasso tool.
For instance, I want to select a group of data points and I want to compute the mean value of those selected points.

Thanks for your help,

jg

--
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/a32d431f-ac06-4ec4-8741-ae3d110c3b92%40continuum.io\.
For more options, visit https://groups.google.com/a/continuum.io/d/optout\.

Will equivalent JS callback be available in Rbokeh also?

···

On Wednesday, April 29, 2015 at 6:13:39 PM UTC-4, Bryan Van de ven wrote:

There are two possibilities. You can use a Bokeh server, similar to this example:

    [https://github.com/bokeh/bokeh/blob/master/examples/plotting/server/selection_histogram.py](https://github.com/bokeh/bokeh/blob/master/examples/plotting/server/selection_histogram.py)

Another (upcoming) option is the “JS callback” to be able to provide rich interactions without a server. This feature is in master, and is in the latest “dev build” (but not the last stable release). Right now you can only specify callbacks on widgets, but it is intended to add callback capability for selection events too.

Thanks,

Bryan

On Apr 29, 2015, at 5:05 PM, joegi.geo via Bokeh Discussion - Public [email protected] wrote:

Hi,

I wonder if it is possible to do something with the data selected with the lasso tool.

For instance, I want to select a group of data points and I want to compute the mean value of those selected points.

Thanks for your help,

jg


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/a32d431f-ac06-4ec4-8741-ae3d110c3b92%40continuum.io.

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

There's no reason it can't be, and I expect it would not be difficult to add support for it. You might want to ping the rBokeh project about it on their issue tracker:

  https://github.com/bokeh/rbokeh/issues

Bryan

···

On Apr 30, 2015, at 9:13 AM, Jtemp <[email protected]> wrote:

Will equivalent JS callback be available in Rbokeh also?

On Wednesday, April 29, 2015 at 6:13:39 PM UTC-4, Bryan Van de ven wrote:
There are two possibilities. You can use a Bokeh server, similar to this example:

        https://github.com/bokeh/bokeh/blob/master/examples/plotting/server/selection_histogram.py

Another (upcoming) option is the "JS callback" to be able to provide rich interactions without a server. This feature is in master, and is in the latest "dev build" (but not the last stable release). Right now you can only specify callbacks on widgets, but it is intended to add callback capability for selection events too.

Thanks,

Bryan

> On Apr 29, 2015, at 5:05 PM, joegi.geo via Bokeh Discussion - Public <[email protected]> wrote:
>
> Hi,
>
> I wonder if it is possible to do something with the data selected with the lasso tool.
> For instance, I want to select a group of data points and I want to compute the mean value of those selected points.
>
>
> Thanks for your help,
>
> jg
>
> --
> 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 bokeh+un...@continuum.io.
> To post to this group, send email to bo...@continuum.io.
> To view this discussion on the web visit https://groups.google.com/a/continuum.io/d/msgid/bokeh/a32d431f-ac06-4ec4-8741-ae3d110c3b92%40continuum.io\.
> For more options, visit https://groups.google.com/a/continuum.io/d/optout\.

--
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/57737a87-2db5-4a1e-aac8-689a9407168f%40continuum.io\.
For more options, visit https://groups.google.com/a/continuum.io/d/optout\.

Anything that’s available on the javascript side should technically be available in rbokeh since rbokeh is just an interface that generates the model sent to BokehJS. It’s a question of how to make it available at the R level as opposed to javascript. I’ll have to wait and see what the API looks like for selection event callbacks (I don’t see anything yet in the dev docs) but I would imagine it would be easy to expose in R.

···

On Apr 30, 2015, at 7:13 AM, Jtemp [email protected] wrote:

Will equivalent JS callback be available in Rbokeh also?

On Wednesday, April 29, 2015 at 6:13:39 PM UTC-4, Bryan Van de ven wrote:

There are two possibilities. You can use a Bokeh server, similar to this example:

    [https://github.com/bokeh/bokeh/blob/master/examples/plotting/server/selection_histogram.py](https://github.com/bokeh/bokeh/blob/master/examples/plotting/server/selection_histogram.py)

Another (upcoming) option is the “JS callback” to be able to provide rich interactions without a server. This feature is in master, and is in the latest “dev build” (but not the last stable release). Right now you can only specify callbacks on widgets, but it is intended to add callback capability for selection events too.

Thanks,

Bryan

On Apr 29, 2015, at 5:05 PM, joegi.geo via Bokeh Discussion - Public [email protected] wrote:

Hi,

I wonder if it is possible to do something with the data selected with the lasso tool.

For instance, I want to select a group of data points and I want to compute the mean value of those selected points.

Thanks for your help,

jg


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/a32d431f-ac06-4ec4-8741-ae3d110c3b92%40continuum.io.

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

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/57737a87-2db5-4a1e-aac8-689a9407168f%40continuum.io.

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

Ryan,

They are on a test staging deploy of the docs currently. Check out:

  http://bokeh.pydata.org/en/test/docs/user_guide/interaction.html#callbacks-for-widgets

and

  http://bokeh.pydata.org/en/test/docs/reference/models.html#bokeh.models.actions.Callback

Bryan

···

On Apr 30, 2015, at 1:15 PM, Ryan Hafen <[email protected]> wrote:

Anything that’s available on the javascript side should technically be available in rbokeh since rbokeh is just an interface that generates the model sent to BokehJS. It’s a question of how to make it available at the R level as opposed to javascript. I’ll have to wait and see what the API looks like for selection event callbacks (I don’t see anything yet in the dev docs) but I would imagine it would be easy to expose in R.

On Apr 30, 2015, at 7:13 AM, Jtemp <[email protected]> wrote:

Will equivalent JS callback be available in Rbokeh also?

On Wednesday, April 29, 2015 at 6:13:39 PM UTC-4, Bryan Van de ven wrote:
There are two possibilities. You can use a Bokeh server, similar to this example:

        https://github.com/bokeh/bokeh/blob/master/examples/plotting/server/selection_histogram.py

Another (upcoming) option is the "JS callback" to be able to provide rich interactions without a server. This feature is in master, and is in the latest "dev build" (but not the last stable release). Right now you can only specify callbacks on widgets, but it is intended to add callback capability for selection events too.

Thanks,

Bryan

> On Apr 29, 2015, at 5:05 PM, joegi.geo via Bokeh Discussion - Public <[email protected]> wrote:
>
> Hi,
>
> I wonder if it is possible to do something with the data selected with the lasso tool.
> For instance, I want to select a group of data points and I want to compute the mean value of those selected points.
>
>
> Thanks for your help,
>
> jg
>
> --
> 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 bokeh+un...@continuum.io.
> To post to this group, send email to bo...@continuum.io.
> To view this discussion on the web visit https://groups.google.com/a/continuum.io/d/msgid/bokeh/a32d431f-ac06-4ec4-8741-ae3d110c3b92%40continuum.io\.
> For more options, visit https://groups.google.com/a/continuum.io/d/optout\.

--
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/57737a87-2db5-4a1e-aac8-689a9407168f%40continuum.io\.
For more options, visit https://groups.google.com/a/continuum.io/d/optout\.

--
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/42887028-A094-4476-8AD8-021418A8DE47%40gmail.com\.
For more options, visit https://groups.google.com/a/continuum.io/d/optout\.

Hi Bryan,

Pretty much that is what I want to do (https://github.com/bokeh/bokeh/blob/master/examples/plotting/server/selection_histogram.py
)

However, it seems that the script is not working properly. I think the histograms should update when I do the brushing but nothing happens.

Joel

···

On Thursday, April 30, 2015 at 12:06:26 AM UTC+2, joe gi wrote:

Hi,

I wonder if it is possible to do something with the data selected with the lasso tool.
For instance, I want to select a group of data points and I want to compute the mean value of those selected points.

Thanks for your help,

jg

Hi Joe, we would need more information to try and help with this: What version of Bokeh? How was it installed? What platform, browser, etc? How did you start bokeh-server?

Thanks,

Bryan

···

On May 4, 2015, at 7:15 AM, 'joe gi' via Bokeh Discussion - Public <[email protected]> wrote:

Hi Bryan,

Pretty much that is what I want to do (https://github.com/bokeh/bokeh/blob/master/examples/plotting/server/selection_histogram.py )

However, it seems that the script is not working properly. I think the histograms should update when I do the brushing but nothing happens.

Joel

On Thursday, April 30, 2015 at 12:06:26 AM UTC+2, joe gi wrote:
Hi,

I wonder if it is possible to do something with the data selected with the lasso tool.
For instance, I want to select a group of data points and I want to compute the mean value of those selected points.

Thanks for your help,

jg

--
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/5b321df3-4272-4f80-8713-e7cc43968d4f%40continuum.io\.
For more options, visit https://groups.google.com/a/continuum.io/d/optout\.

Hi,

I am using anaconda 2.2.0, bokeh 0.8.2, iptyhon 3.1.0.

I am running the example from an ipython notebook.

My browser is firebox

I run the server from the terminal as follows: bokeh-server

Hi Joe, we would need more information to try and help with this: What version of Bokeh? How was it installed? What platform, browser, etc? How did you start bokeh-server?

Thanks,

Bryan

···

On Monday, May 4, 2015 3:11 PM, Bryan Van de Ven [email protected] wrote:

On May 4, 2015, at 7:15 AM, ‘joe gi’ via Bokeh Discussion - Public [email protected] wrote:

Hi Bryan,

Pretty much that is what I want to do (https://github.com/bokeh/bokeh/blob/master/examples/plotting/server/selection_histogram.py )

However, it seems that the script is not working properly. I think the histograms should update when I do the brushing but nothing happens.

Joel

On Thursday, April 30, 2015 at 12:06:26 AM UTC+2, joe gi wrote:
Hi,

I wonder if it is possible to do something with the data selected with the lasso tool.
For instance, I want to select a group of data points and I want to compute the mean value of those selected points.

Thanks for your help,

jg


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/5b321df3-4272-4f80-8713-e7cc43968d4f%40continuum.io.
For more options, visit https://groups.google.com/a/continuum.io/d/optout.


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/2A16D3DB-6600-43AE-9744-6E3930FB26F9%40continuum.io.

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

Do yo have redis installed? Can you try running the server "bokeh-server --dev" and then report back if there are any errors either i) in the console where the server is started, or ii) in the browser console?

Thanks,

Bryan

···

On May 5, 2015, at 7:51 AM, 'Joel Guerrero' via Bokeh Discussion - Public <[email protected]> wrote:

Hi,

I am using anaconda 2.2.0, bokeh 0.8.2, iptyhon 3.1.0.
I am running the example from an ipython notebook.
My browser is firebox

I run the server from the terminal as follows: bokeh-server

On Monday, May 4, 2015 3:11 PM, Bryan Van de Ven <[email protected]> wrote:

Hi Joe, we would need more information to try and help with this: What version of Bokeh? How was it installed? What platform, browser, etc? How did you start bokeh-server?

Thanks,

Bryan

> On May 4, 2015, at 7:15 AM, 'joe gi' via Bokeh Discussion - Public <[email protected]> wrote:
>
> Hi Bryan,
>
> Pretty much that is what I want to do (https://github.com/bokeh/bokeh/blob/master/examples/plotting/server/selection_histogram.py )
>
> However, it seems that the script is not working properly. I think the histograms should update when I do the brushing but nothing happens.
>
>
> Joel
>
> On Thursday, April 30, 2015 at 12:06:26 AM UTC+2, joe gi wrote:
> Hi,
>
> I wonder if it is possible to do something with the data selected with the lasso tool.
> For instance, I want to select a group of data points and I want to compute the mean value of those selected points.
>
>
> Thanks for your help,
>
> jg
>
> --
> 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/5b321df3-4272-4f80-8713-e7cc43968d4f%40continuum.io\.
> For more options, visit https://groups.google.com/a/continuum.io/d/optout\.

--
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/2A16D3DB-6600-43AE-9744-6E3930FB26F9%40continuum.io\.

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

--
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/94272001.338999.1430830289016.JavaMail.yahoo%40mail.yahoo.com\.
For more options, visit https://groups.google.com/a/continuum.io/d/optout\.

no errors

Hi,

I am using anaconda 2.2.0, bokeh 0.8.2, iptyhon 3.1.0.

I am running the example from an ipython notebook.

My browser is firebox

I run the server from the terminal as follows: bokeh-server

Hi Joe, we would need more information to try and help with this: What version of Bokeh? How was it installed? What platform, browser, etc? How did you start bokeh-server?

Thanks,

Bryan

···

On Tuesday, May 5, 2015 3:18 PM, ‘Joel Guerrero’ via Bokeh Discussion - Public [email protected] wrote:
On Monday, May 4, 2015 3:11 PM, Bryan Van de Ven [email protected] wrote:

On May 4, 2015, at 7:15 AM, ‘joe gi’ via Bokeh Discussion - Public [email protected] wrote:

Hi Bryan,

Pretty much that is what I want to do (https://github.com/bokeh/bokeh/blob/master/examples/plotting/server/selection_histogram.py )

However, it seems that the script is not working properly. I think the histograms should update when I do the brushing but nothing happens.

Joel

On Thursday, April 30, 2015 at 12:06:26 AM UTC+2, joe gi wrote:
Hi,

I wonder if it is possible to do something with the data selected with the lasso tool.
For instance, I want to select a group of data points and I want to compute the mean value of those selected points.

Thanks for your help,

jg


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/5b321df3-4272-4f80-8713-e7cc43968d4f%40continuum.io.
For more options, visit https://groups.google.com/a/continuum.io/d/optout.


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/2A16D3DB-6600-43AE-9744-6E3930FB26F9%40continuum.io.

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

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/94272001.338999.1430830289016.JavaMail.yahoo%40mail.yahoo.com.

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

Hi Joel,

Could you try the file example Bryan pointed

    [https://github.com/bokeh/bokeh/blob/master/examples/plotting/server/selection_histogram.py](https://github.com/bokeh/bokeh/blob/master/examples/plotting/server/selection_histogram.py)

and not from IPython notebook? It can help us try to understand where’s the issue…

Thank you

···

On Tue, May 5, 2015 at 6:28 PM, ‘Joel Guerrero’ via Bokeh Discussion - Public [email protected] wrote:

no errors

On Tuesday, May 5, 2015 3:18 PM, ‘Joel Guerrero’ via Bokeh Discussion - Public [email protected] wrote:

Hi,

I am using anaconda 2.2.0, bokeh 0.8.2, iptyhon 3.1.0.

I am running the example from an ipython notebook.

My browser is firebox

I run the server from the terminal as follows: bokeh-server

On Monday, May 4, 2015 3:11 PM, Bryan Van de Ven [email protected] wrote:

Hi Joe, we would need more information to try and help with this: What version of Bokeh? How was it installed? What platform, browser, etc? How did you start bokeh-server?

Thanks,

Bryan

On May 4, 2015, at 7:15 AM, ‘joe gi’ via Bokeh Discussion - Public [email protected] wrote:

Hi Bryan,

Pretty much that is what I want to do (https://github.com/bokeh/bokeh/blob/master/examples/plotting/server/selection_histogram.py )

However, it seems that the script is not working properly. I think the histograms should update when I do the brushing but nothing happens.

Joel

On Thursday, April 30, 2015 at 12:06:26 AM UTC+2, joe gi wrote:
Hi,

I wonder if it is possible to do something with the data selected with the lasso tool.
For instance, I want to select a group of data points and I want to compute the mean value of those selected points.

Thanks for your help,

jg


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/5b321df3-4272-4f80-8713-e7cc43968d4f%40continuum.io.
For more options, visit https://groups.google.com/a/continuum.io/d/optout.


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/2A16D3DB-6600-43AE-9744-6E3930FB26F9%40continuum.io.

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

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/94272001.338999.1430830289016.JavaMail.yahoo%40mail.yahoo.com.

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

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/637811614.509838.1430843304104.JavaMail.yahoo%40mail.yahoo.com.

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

Fabio Pliger