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

Incompatible whith matplotlib v3.10.0 #567

Closed
NikitaShubin opened this issue Dec 16, 2024 · 3 comments · Fixed by #568
Closed

Incompatible whith matplotlib v3.10.0 #567

NikitaShubin opened this issue Dec 16, 2024 · 3 comments · Fixed by #568
Labels

Comments

@NikitaShubin
Copy link

NikitaShubin commented Dec 16, 2024

Describe the issue

When I use the next simple code in JupyterLab

%matplotlib ipympl
from matplotlib import pyplot as plt
import numpy as np


img = np.random.randint(256, size=(512, 512, 3), dtype=np.uint8)

plt.imshow(img)

the figure buttons ("move", "zoom" and all others exept "save") just do nothing. But it's all right when I use matplotlib v3.9.3.

Versions

Python 3.11.0rc1
jupyterlab 4.3.3
ipympl 0.9.4
matplotlib 3.10.0


python -c "import sys; print('\n',sys.version); import ipympl; print('ipympl version:', ipympl.__version__)" && jupyter --version && jupyter nbextension list && jupyter labextension list

-->

 3.11.0rc1 (main, Aug 12 2022, 10:02:14) [GCC 11.2.0]
ipympl version: 0.9.4
Selected Jupyter core packages...
IPython          : 8.30.0
ipykernel        : 6.29.5
ipywidgets       : 8.1.5
jupyter_client   : 8.6.3
jupyter_core     : 5.7.2
jupyter_server   : 2.14.2
jupyterlab       : 4.3.3
nbclient         : 0.10.1
nbconvert        : 7.16.4
nbformat         : 5.10.4
notebook         : not installed
qtconsole        : not installed
traitlets        : 5.14.3
usage: jupyter [-h] [--version] [--config-dir] [--data-dir] [--runtime-dir] [--paths] [--json] [--debug]
               [subcommand]

Jupyter: Interactive Computing

positional arguments:
  subcommand     the subcommand to launch

options:
  -h, --help     show this help message and exit
  --version      show the versions of core jupyter packages and exit
  --config-dir   show Jupyter config dir
  --data-dir     show Jupyter data dir
  --runtime-dir  show Jupyter runtime dir
  --paths        show all Jupyter paths. Add --json for machine-readable format.
  --json         output paths as machine-readable json
  --debug        output debug information about paths

Available subcommands: dejavu events execute fileid kernel kernelspec lab labextension labhub migrate
nbconvert run server troubleshoot trust

Jupyter command `jupyter-nbextension` not found.
@ianthomas23
Copy link
Member

I can confirm this. It is possible to resize the canvas so not all interactivity is broken, but button selection (or use) is broken. The same occurs with matplotlib==3.10.0rc1.

@ianthomas23
Copy link
Member

git bisect of Matplotlib points to matplotlib/matplotlib#28453.

@ianthomas23
Copy link
Member

Thanks for the bug report @NikitaShubin, we are hoping to release a new version containing the fix soon.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants