Open
Description
Bug summary
Hi, in IPython console with tkagg
backend, if I plot two separate figures and close Figure1, the Figure2 window freezes, I cannot close it (Not Responding), and it interrupts the IPython console.
If I close Figure2 and then Figure1, there would be no issue at all.
2024-06-03-18-43-07.mp4
Code for reproduction
%matplotlib tk
import matplotlib.pyplot as plt
plt.figure()
plt.figure()
Actual outcome
Please see the video.
Expected outcome
Both should work without freezing.
Additional information
The application of plt.show(block=False)
doesn't have any impact.
Operating system
Windows 10 and 11
Matplotlib Version
3.9.0
Matplotlib Backend
tkagg
Python version
3.10.11
Jupyter version
iPython 8.24.0
Installation
pip