You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
KeyError: 'buttons' when plotting with matplotlib / ipympl backend in Jupyter Notebook within VSCode presumably due to typo #29337
changed the title [-]KeyError: 'buttons' when plotting with matplotlib / ipympl backend presumably due to type[/-][+]KeyError: 'buttons' when plotting with matplotlib / ipympl backend in Jupyter Notebook within VSCode presumably due to type[/+]on Dec 17, 2024
Yes, this has been fixed on the ipympl side as is in today's 0.9.5 release on PyPI. The conda-forge package isn't available yet but it will be shortly.
changed the title [-]KeyError: 'buttons' when plotting with matplotlib / ipympl backend in Jupyter Notebook within VSCode presumably due to type[/-][+]KeyError: 'buttons' when plotting with matplotlib / ipympl backend in Jupyter Notebook within VSCode presumably due to typo[/+]on Dec 17, 2024
Activity
[-]KeyError: 'buttons' when plotting with matplotlib / ipympl backend presumably due to type[/-][+]KeyError: 'buttons' when plotting with matplotlib / ipympl backend in Jupyter Notebook within VSCode presumably due to type[/+]timhoffm commentedon Dec 17, 2024
I haven’t looked closer, but the code has recently been touched in #28453, and it may be a typo.
rcomer commentedon Dec 17, 2024
I believe this has been addressed by matplotlib/ipympl#568
ianthomas23 commentedon Dec 17, 2024
Yes, this has been fixed on the
ipymplside as is in today's 0.9.5 release on PyPI. Theconda-forgepackage isn't available yet but it will be shortly.ianthomas23 commentedon Dec 17, 2024
But before we close the issue, can @gnbl confirm what versions of packages are installed, particularly
ipymplandmatplotlib.gnbl commentedon Dec 17, 2024
Afk, eta 14 hrs 😁
[-]KeyError: 'buttons' when plotting with matplotlib / ipympl backend in Jupyter Notebook within VSCode presumably due to type[/-][+]KeyError: 'buttons' when plotting with matplotlib / ipympl backend in Jupyter Notebook within VSCode presumably due to typo[/+]gnbl commentedon Dec 18, 2024
matplotlib 3.10.0
ipympl 0.9.4
...
Successfully installed ipympl-0.9.5
Fixed in the update! Thanks.
update ipympl
gcohn commentedon May 30, 2025
This was driving me nuts!
pip install -U ipympl>0.9.5for the win!