Open
Description
Bug summary
tk hangs/crashes if windows are closed not in reverse order of opened. This happens in ipython shell.
I have no other issues with ipython, only with matplotlib.
Code for reproduction
%matplotlib tk
figure()
from matplotlib.pylab import *
ion()
plot([0,1])
figure()
plot([0,1])
# Then close Window 1.
Actual outcome
Window 2 becomes non-responsive.
Expected outcome
There should be no crash irrespective in what order windows are closed.
In some cases the shell hangs entirely, and the terminal window has to be closed (^C
or ^Z
do not work).
Additional information
It happens 100% of the time.
Operating system
Fedora 38
Matplotlib Version
3.7.2
Matplotlib Backend
TkAgg
Python version
3.11.4 (build from source)
Jupyter version
8.15.0 (installed from pip)
Installation
pip