There is currently no generic mechanism in Bokeh to respond to arbitrary keyboard events. Basically, I'm not keen on making a tool that would enable people to trivially build surreptitious keyloggers. (It's easy enough already with other web tools.) Additionally Bokeh is meant to be embedded inside larger web pages, and trying to key events could very likely interfere with man pages that embed Bokeh plots (the Jupyter notebook for example, might fall over badly, for example). There is a lot of investigation and discussion to have before any support for key events can potentially be added.
Right now if you want to respond to keyboard events for some specific use-case, you will have to write your own custom extension outside of the core library to do that:
On May 25, 2017, at 14:48, scls <[email protected]> wrote:
I'd like to zoom in / zoom out on x axis simply by pressing key.
I also 'd like to scroll x axis by simply pressing on key.
How can I do this?
I haven't find any information about it at
Such feature will be very convenient when dealing with timeseries
Any help will be very nice
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/600ef578-e551-4bc5-b801-f9c3f7c1573e%40continuum.io.
For more options, visit https://groups.google.com/a/continuum.io/d/optout.