Using ClickTool

Hello, I see that the click tool has been rolled into Bokeh which is excellent. However, I cannot currently find an documentation on how to use it. Could someone please point me to an example that works (I have tried https://github.com/ContinuumIO/bokeh/blob/master/examples/plotting/file/click.py but I get a “WARNING: ‘point’ selection not available on renderer” error from the Firefox console) or documentation on how to use it? Thanks in advance.

Hi Jakub,

Thanks for your interest in Bokeh! We did recently add a "click tool" but currently using this tool does require some measure of JS integration. Basically, the "call back" for the click has to be written in JS. We are currently working on a Python->JS callback reflection mechanism so that many callbacks for clicks could actually be written in pure python. But this is not quite ready yet, which is why there is not much by way of documentation for the click tool yet.

If you are interested in trying out the click tool as it is currently (by writing a little bit of JS for the callback yourself) let me know and I will get you some additional information. Otherwise, you can expect much better usability for the click tool in the 0.6 release tentatively scheduled for late August or early September (and probably in nightly/dev builds before then).

Thanks,

Bryan

···

On Jul 31, 2014, at 4:50 PM, Jakub Prchlik <[email protected]> wrote:

Hello, I see that the click tool has been rolled into Bokeh which is excellent. However, I cannot currently find an documentation on how to use it. Could someone please point me to an example that works (I have tried https://github.com/ContinuumIO/bokeh/blob/master/examples/plotting/file/click.py but I get a "WARNING: 'point' selection not available on renderer" error from the Firefox console) or documentation on how to use it? 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/20cad988-655f-4698-9f40-77db1996a0dc%40continuum.io.
For more options, visit https://groups.google.com/a/continuum.io/d/optout.

Bryan,

Thanks! I would like to try it as is. Could you please send me the additional information whenever possible.

Jakub

···

On Friday, August 1, 2014 11:02:37 AM UTC-4, Bryan Van de ven wrote:

Hi Jakub,

Thanks for your interest in Bokeh! We did recently add a “click tool” but currently using this tool does require some measure of JS integration. Basically, the “call back” for the click has to be written in JS. We are currently working on a Python->JS callback reflection mechanism so that many callbacks for clicks could actually be written in pure python. But this is not quite ready yet, which is why there is not much by way of documentation for the click tool yet.

If you are interested in trying out the click tool as it is currently (by writing a little bit of JS for the callback yourself) let me know and I will get you some additional information. Otherwise, you can expect much better usability for the click tool in the 0.6 release tentatively scheduled for late August or early September (and probably in nightly/dev builds before then).

Thanks,

Bryan

On Jul 31, 2014, at 4:50 PM, Jakub Prchlik [email protected] wrote:

Hello, I see that the click tool has been rolled into Bokeh which is excellent. However, I cannot currently find an documentation on how to use it. Could someone please point me to an example that works (I have tried https://github.com/ContinuumIO/bokeh/blob/master/examples/plotting/file/click.py but I get a “WARNING: ‘point’ selection not available on renderer” error from the Firefox console) or documentation on how to use it? 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/20cad988-655f-4698-9f40-77db1996a0dc%40continuum.io.

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

I’m also very interested in the ClickTool, primarily so I can use the callback to update a second plot (e.g. the user could click on a point in the main plot and a secondary plot would update showing some details about that point). Is this currently possible? I don’t mind using some JS myself.

···

On Friday, August 1, 2014 8:02:37 AM UTC-7, Bryan Van de ven wrote:

Hi Jakub,

Thanks for your interest in Bokeh! We did recently add a “click tool” but currently using this tool does require some measure of JS integration. Basically, the “call back” for the click has to be written in JS. We are currently working on a Python->JS callback reflection mechanism so that many callbacks for clicks could actually be written in pure python. But this is not quite ready yet, which is why there is not much by way of documentation for the click tool yet.

If you are interested in trying out the click tool as it is currently (by writing a little bit of JS for the callback yourself) let me know and I will get you some additional information. Otherwise, you can expect much better usability for the click tool in the 0.6 release tentatively scheduled for late August or early September (and probably in nightly/dev builds before then).

Thanks,

Bryan

On Jul 31, 2014, at 4:50 PM, Jakub Prchlik [email protected] wrote:

Hello, I see that the click tool has been rolled into Bokeh which is excellent. However, I cannot currently find an documentation on how to use it. Could someone please point me to an example that works (I have tried https://github.com/ContinuumIO/bokeh/blob/master/examples/plotting/file/click.py but I get a “WARNING: ‘point’ selection not available on renderer” error from the Firefox console) or documentation on how to use it? 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/20cad988-655f-4698-9f40-77db1996a0dc%40continuum.io.

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

Hey guys, I have not forgotten this thread. I am currently working on some plumbing and interface that will facilitate this greatly. Rather than give an explanation of a process that is currently long and tedious that will be out of date soon, I will respond again when the object query interface is in master, or at least in a PR that's reasonable to check out. I am currently out of the country, so it will be next week before I can devote full attention to this.

Bryan

···

On Aug 1, 2014, at 9:59 PM, Brad Buran <[email protected]> wrote:

I'm also very interested in the ClickTool, primarily so I can use the callback to update a second plot (e.g. the user could click on a point in the main plot and a secondary plot would update showing some details about that point). Is this currently possible? I don't mind using some JS myself.

On Friday, August 1, 2014 8:02:37 AM UTC-7, Bryan Van de ven wrote:
Hi Jakub,

Thanks for your interest in Bokeh! We did recently add a "click tool" but currently using this tool does require some measure of JS integration. Basically, the "call back" for the click has to be written in JS. We are currently working on a Python->JS callback reflection mechanism so that many callbacks for clicks could actually be written in pure python. But this is not quite ready yet, which is why there is not much by way of documentation for the click tool yet.

If you are interested in trying out the click tool as it is currently (by writing a little bit of JS for the callback yourself) let me know and I will get you some additional information. Otherwise, you can expect much better usability for the click tool in the 0.6 release tentatively scheduled for late August or early September (and probably in nightly/dev builds before then).

Thanks,

Bryan

On Jul 31, 2014, at 4:50 PM, Jakub Prchlik <[email protected]> wrote:

> Hello, I see that the click tool has been rolled into Bokeh which is excellent. However, I cannot currently find an documentation on how to use it. Could someone please point me to an example that works (I have tried https://github.com/ContinuumIO/bokeh/blob/master/examples/plotting/file/click.py but I get a "WARNING: 'point' selection not available on renderer" error from the Firefox console) or documentation on how to use it? 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/20cad988-655f-4698-9f40-77db1996a0dc%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/075dc46f-a9a1-42ca-97ba-85b8b2fcb43c%40continuum.io.
For more options, visit https://groups.google.com/a/continuum.io/d/optout.

Hey Jakub, Buran,

I know it has take quite a bit longer than I had hoped but I wanted to point out that most of this work has been done. There is now a “tap” tool for selection, and you can get the selection either in python (through a bokeh-server) or in JS (by listening to the data source for events). There’s also now a poly and lasso select tools as well. A new dev release with updated docs is forthcoming but you can look at examples/plotting/file/color_scatter.py and examples/plotting/file/tap.py to see these tools in use.

Also, there is now an example of “hybrid” development where the plots are created n python but then updated in JS, in case that is useful, it is currently on this PR:

https://github.com/ContinuumIO/bokeh/pull/911

Let me know if I can provide more information, etc.

Bryan