jupyter-widgets / tutorial

A tutorial for widgets
BSD 3-Clause "New" or "Revised" License
394 stars 164 forks source link

Ipympl zoom and pan not working #211

Closed Diamondemon closed 1 year ago

Diamondemon commented 1 year ago

Hello

I have been going through the tutorial and when arriving to the cell about Fully interactive plot in notebook 01.00-Using-Interact.ipynb I have this problem:

The buttons to select pan & zoom, save, etc... are displayed well, but when I try to actually pan and zoom on the plot, nothing happens.

The buttons seem to work fine, but it looks like the mouse events are not transferred to the plot.

Do you have any idea why this happens?

Diamondemon commented 1 year ago

I appears that updating ipympl from 0.9.1 to 0.9.3 fixed the problem.

It's not the only package that was updated so here is the list of updates that were made:

  beautifulsoup4                        4.12.0-pyha770c72_0 --> 4.12.2-pyha770c72_0 
  debugpy                              1.6.6-py39h227be39_0 --> 1.6.7-py39h227be39_0 
  fftw                            3.3.10-nompi_hf0379b8_106 --> 3.3.10-nompi_hc118613_107 
  fsspec                              2023.3.0-pyhd8ed1ab_1 --> 2023.4.0-pyh1a96a4e_0 
  importlib-metadata                     6.1.0-pyha770c72_0 --> 6.3.0-pyha770c72_0 
  importlib_metadata                       6.1.0-hd8ed1ab_0 --> 6.3.0-hd8ed1ab_0 
  ipympl                                 0.9.1-pyhd8ed1ab_0 --> 0.9.3-pyhd8ed1ab_0 
  loguru                               0.6.0-py39hf3d152e_2 --> 0.7.0-py39hf3d152e_0 
  notebook                               6.5.3-pyha770c72_0 --> 6.5.4-pyha770c72_0 
  pygments                              2.14.0-pyhd8ed1ab_0 --> 2.15.0-pyhd8ed1ab_0 
  websockets                            10.4-py39hb9d737c_1 --> 11.0-py39h72bdee0_0