Trigger tools from gui elements

I’m using a Bokeh server, and I was wondering if it is possible to remove the visible tools that are aligned on the edge of the plot, and instead have them triggered by buttons on the page?

Thanks,
Nick

It might be, you’d have to play around. I’m not familiar with any examples of that.

···

On 10/10/16 9:36 AM,
wrote:

[email protected]

    I'm using a Bokeh server, and I was wondering if it

is possible to remove the visible tools that are aligned on the
edge of the plot, and instead have them triggered by buttons on
the page?

    Thanks,

    Nick

  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/edc7213b-c6df-485d-bf3e-3d43e49bce1d%40continuum.io](https://groups.google.com/a/continuum.io/d/msgid/bokeh/edc7213b-c6df-485d-bf3e-3d43e49bce1d%40continuum.io?utm_medium=email&utm_source=footer).

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


Sarah Bird
Developer, Bokeh

    [
      ![Continuum Analytics](http://docs.continuum.io/_static/img/ContinuumWordmark.png)
    ](http://continuum.io)

Hi,

Here is a sketch of a possible way (untested):

Your best best for this is to add all the tools, but set toolbar_visible=False. Then you can configure a CustomJS callback yoiur your buttons that are configured with the Tools objects as arguments. In the callbacks you can set sometool.active to be True of False.

Thanks,

Bryan

···

On Oct 10, 2016, at 11:36 AM, [email protected] wrote:

I'm using a Bokeh server, and I was wondering if it is possible to remove the visible tools that are aligned on the edge of the plot, and instead have them triggered by buttons on the page?

Thanks,
Nick

--
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/edc7213b-c6df-485d-bf3e-3d43e49bce1d%40continuum.io\.
For more options, visit https://groups.google.com/a/continuum.io/d/optout\.