[bokeh] EditTools callbacks

Hi,

See this section of the documentation:

  https://bokeh.pydata.org/en/latest/docs/user_guide/interaction/callbacks.html#customjs-for-user-interaction-events

Thanks,

Bryan

···

On Mar 10, 2018, at 12:26, [email protected] wrote:

Hi,
Is there a way to extract the coordinates of the boxes that are defined by BoxEditTool?
What is the event that is being generated by adding the box to the renderer?

Alternatively, there was once a way to extract the coordinates of selection box by using something like this:
p.tool_events.on_change("geometries", toolEventsCallback)

This method have been deprecated in bokeh 0.12.14. I was wondering what is the current equivalent.
Thanks so much for the help,
Ilya

--
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/a8b77181-8a4a-4eca-9dbb-af2223a7a440%40continuum.io.
For more options, visit https://groups.google.com/a/continuum.io/d/optout.

Thanks Bryan,
My question was not clear. I was trying to trigger a callback on the python side (on the server). As far as I understand the JS callbacks that you are mentioning are running in the browser, right?

Thanks again!

Ilya

···

On Mon, 12 Mar 2018 at 8:55 Bryan Van de ven [email protected] wrote:

Hi,

See this section of the documentation:

    [https://bokeh.pydata.org/en/latest/docs/user_guide/interaction/callbacks.html#customjs-for-user-interaction-events](https://bokeh.pydata.org/en/latest/docs/user_guide/interaction/callbacks.html#customjs-for-user-interaction-events)

Thanks,

Bryan

On Mar 10, 2018, at 12:26, [email protected] wrote:

Hi,

Is there a way to extract the coordinates of the boxes that are defined by BoxEditTool?

What is the event that is being generated by adding the box to the renderer?

Alternatively, there was once a way to extract the coordinates of selection box by using something like this:

p.tool_events.on_change(“geometries”, toolEventsCallback)

This method have been deprecated in bokeh 0.12.14. I was wondering what is the current equivalent.

Thanks so much for the help,

Ilya

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/a8b77181-8a4a-4eca-9dbb-af2223a7a440%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/73219C0C-4B37-4F3E-A709-6A56D9CC4405%40anaconda.com.

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

Hi,

The same events can trigger python callbacks in apps, see

  https://github.com/bokeh/bokeh/blob/master/examples/howto/events_app.py

Thanks,

Bryan

···

On Mar 12, 2018, at 09:14, Ilya Soifer <[email protected]> wrote:

Thanks Bryan,
My question was not clear. I was trying to trigger a callback on the python side (on the server). As far as I understand the JS callbacks that you are mentioning are running in the browser, right?
Thanks again!
Ilya

On Mon, 12 Mar 2018 at 8:55 Bryan Van de ven <[email protected]> wrote:
Hi,

See this section of the documentation:

        https://bokeh.pydata.org/en/latest/docs/user_guide/interaction/callbacks.html#customjs-for-user-interaction-events

Thanks,

Bryan

> On Mar 10, 2018, at 12:26, [email protected] wrote:
>
> Hi,
> Is there a way to extract the coordinates of the boxes that are defined by BoxEditTool?
> What is the event that is being generated by adding the box to the renderer?
>
> Alternatively, there was once a way to extract the coordinates of selection box by using something like this:
> p.tool_events.on_change("geometries", toolEventsCallback)
>
>
> This method have been deprecated in bokeh 0.12.14. I was wondering what is the current equivalent.
> Thanks so much for the help,
> Ilya
>
> --
> 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/a8b77181-8a4a-4eca-9dbb-af2223a7a440%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/73219C0C-4B37-4F3E-A709-6A56D9CC4405%40anaconda.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/CALu8EeszV-gi_cMq%2BUrucUDwxc3LkA9%2BRDqJBEiW14z0xAyVhg%40mail.gmail.com.
For more options, visit https://groups.google.com/a/continuum.io/d/optout.

Thanks a lot Bryan! I did not understand this point, thanks for clarifying.
Ilya

···

On Mon, Mar 12, 2018 at 9:24 AM Bryan Van de ven [email protected] wrote:

Hi,

The same events can trigger python callbacks in apps, see

    [https://github.com/bokeh/bokeh/blob/master/examples/howto/events_app.py](https://github.com/bokeh/bokeh/blob/master/examples/howto/events_app.py)

Thanks,

Bryan

On Mar 12, 2018, at 09:14, Ilya Soifer [email protected] wrote:

Thanks Bryan,

My question was not clear. I was trying to trigger a callback on the python side (on the server). As far as I understand the JS callbacks that you are mentioning are running in the browser, right?

Thanks again!

Ilya

On Mon, 12 Mar 2018 at 8:55 Bryan Van de ven [email protected] wrote:

Hi,

See this section of the documentation:

    [https://bokeh.pydata.org/en/latest/docs/user_guide/interaction/callbacks.html#customjs-for-user-interaction-events](https://bokeh.pydata.org/en/latest/docs/user_guide/interaction/callbacks.html#customjs-for-user-interaction-events)

Thanks,

Bryan

On Mar 10, 2018, at 12:26, [email protected] wrote:

Hi,

Is there a way to extract the coordinates of the boxes that are defined by BoxEditTool?

What is the event that is being generated by adding the box to the renderer?

Alternatively, there was once a way to extract the coordinates of selection box by using something like this:

p.tool_events.on_change(“geometries”, toolEventsCallback)

This method have been deprecated in bokeh 0.12.14. I was wondering what is the current equivalent.

Thanks so much for the help,

Ilya

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/a8b77181-8a4a-4eca-9dbb-af2223a7a440%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/73219C0C-4B37-4F3E-A709-6A56D9CC4405%40anaconda.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/CALu8EeszV-gi_cMq%2BUrucUDwxc3LkA9%2BRDqJBEiW14z0xAyVhg%40mail.gmail.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/78D603F1-854B-4473-B138-7E1D5246CDDA%40anaconda.com.

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