Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

xwheel_pan does not do anything #425

Open
kkonolige opened this issue Sep 1, 2024 · 1 comment
Open

xwheel_pan does not do anything #425

kkonolige opened this issue Sep 1, 2024 · 1 comment
Labels
bug Something isn't working Juno Juno app (with embedded Jupyter)

Comments

@kkonolige
Copy link

kkonolige commented Sep 1, 2024

Describe the bug
Adding xwheel_pan to the tools argument of figure puts the tool on the toolbar, but it doesn’t pan or do anything.

To Reproduce
Here’s my code for a Jupyter notebook:

import bokeh.plotting.figure as bk_figure
from bokeh.io import show, output_notebook
from bokeh.models import ColumnDataSource

# enable notebook figures
output_notebook()

plot = bk_figure(plot_height=400, plot_width=600, title='Test xwheel panning',
                 tools='xwheel_pan, pan, xwheel_zoom',
                 active_scroll='xwheel_pan',
                 x_range=[3.5, 5.5],
                 toolbar_location='above')

source = ColumnDataSource(data=dict(x=[1,2,3,4,5,6],y=[1,2,3,4,5,6]))
p = plot.line('x', 'y', source=source, line_width=3)
show(plot)

Expected behavior
Expect the xhweel_pan tool to scroll in the x direction with a scrolling gesture. Doesn’t do anything. Selecting pan does pan with the drag gesture; selecting xwheel_zoom zooms with the scrolling gesture. Note: taking out the other tools does not enable xwheel_pan to work.

Screenshots
Should be able to reproduce with the above code.

Environment (please complete the following information):

  • Device: iPad Pro 13” (M4)
  • iOS version: iOS 17.5.1
  • App version: 3.2.0
@kkonolige kkonolige added bug Something isn't working Juno Juno app (with embedded Jupyter) labels Sep 1, 2024
@alexstaravoitau
Copy link
Collaborator

Thanks for reporting @kkonolige — I'm planning to upgrade a few of the pinned packages soon, bokeh included. I'll see if there's a quick workaround for this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working Juno Juno app (with embedded Jupyter)
Projects
None yet
Development

No branches or pull requests

2 participants