Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

KeyError: 'buttons' when plotting with matplotlib / ipympl backend in Jupyter Notebook within VSCode presumably due to typo #29337

Closed
@gnbl

Description

@gnbl

Using a current install of Python and notebook, matplotlib, ipympl etc. on Windows 11 within VSCode,

%matplotlib ipympl#%matplotlib widgetimport matplotlib.pyplot as plt

and

fig, ax = plt.subplots()...ax.plot(...)

raiseKeyError: 'buttons' inc:\Users\user\AppData\Local\Programs\Python\Python313\Lib\site-packages\matplotlib\backends\backend_webagg_core.py:295

respectively

]ifevent['buttons']&mask# State *after* press/release.

Changing the key tobutton resolves the error (for my use case).

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


      [8]ページ先頭

      ©2009-2025 Movatter.jp