FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

[Bug]: KeyError when hovering over interactive plot in ipython · Issue #29654 · matplotlib/matplotlib · GitHub

Repository navigation

[Bug]: KeyError when hovering over interactive plot in ipython #29654

Closed as duplicate

Description

Bug summary

When hovering over an interactive plot, multiple KeyError: 'buttons' messages fire.

Code for reproduction

import matplotlib.pyplot as plt
%matplotlib widget

plt.plot([1, 2, 3, 4])

Actual outcome

KeyError: 'buttons'

Expected outcome

Hovering works without error

Additional information

No response

Operating system

No response

Matplotlib Version

3.10.0

Matplotlib Backend

No response

Python version

No response

Jupyter version

No response

Installation

None

Activity

  1. ianthomas23 commented on Feb 21, 2025

    Member

    This is a duplicate of #29337 and matplotlib/ipympl#575, it is already fixed in PR matplotlib/ipympl#577 and released in ipympl 0.9.6. Please update your version of ipympl.

  2. lpilz commented on Feb 21, 2025

    Author

    For some reason, we were encountering this bug even with ipympl 0.9.6 installed in the environment we were using. After restarting the kernel multiple times, we don't encounter the bug anymore - maybe a caching issue? Thanks!

  3. T-Wainwright commented on Jul 21, 2025

    Still getting the same error with matplitlib 3.10.3 and ipympl 0.9.7 on completely clean and uncached builds, don't think this can be should be closed yet.

  4. dprotter commented on Aug 1, 2025

    I am having the same issue with 3.10.3 / 0.9.7 on Ubuntu 24.04 in a fresh conda env. Had to roll back to 3.7.5 and 0.9.3 to get interactivity to work.

  5. ianthomas23 commented on Aug 1, 2025

    Member

    This has been identified as a problem in VSCode.

  6. dprotter commented on Aug 1, 2025

    a problem with the jupyter extension? if you have it handy, could you link to the bug report?

  7. ianthomas23 commented on Aug 1, 2025

    Member

    There is a discussion in #30337 with steps to reproduce the problem in VSCode whereas the problem does not occur in JupyterLab.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions


      Back | FazBrowse Home | New Git URL