-
-
Notifications
You must be signed in to change notification settings - Fork 8.4k
Double-click events are not recognised in Jupyter notebook #18404
Copy link
Copy link
Closed
Labels
Difficulty: Mediumhttps://matplotlib.org/devdocs/devel/contribute.html#good-first-issueshttps://matplotlib.org/devdocs/devel/contribute.html#good-first-issuesGUI: nbaggGood first issueOpen a pull request against these issues if there are no active ones!Open a pull request against these issues if there are no active ones!
Milestone
Metadata
Metadata
Assignees
Labels
Difficulty: Mediumhttps://matplotlib.org/devdocs/devel/contribute.html#good-first-issueshttps://matplotlib.org/devdocs/devel/contribute.html#good-first-issuesGUI: nbaggGood first issueOpen a pull request against these issues if there are no active ones!Open a pull request against these issues if there are no active ones!
Type
Fields
Give feedbackNo fields configured for issues without a type.
Bug report
Bug summary
Using the first example from the events documentation detects double-click events properly in the Qt backend, but when used in a Jupyter notebook, the two clicks are recognised as two separate single click events.
Code for reproduction
I've adapted the code to show the contents of the
eventas the figure title instead of aprintstatement, because the output ofprintstatements inside functions triggered by events disappear in Jupyter notebooks.Actual outcome
The title always says
single-click, no matter how fast I do my double-clicking.The double click events are properly captured when using the standard Qt window renderer.
I have tried both the default
%matplotlib notebookbackend and theipymplwidget backend, and they show identical behaviour.Matplotlib version
print(matplotlib.get_backend())): nbAgg, ipymplInstalled in a
condaenv fromconda-forge.