VS Code reopens closed Python script and matplotlib figures after restart
I’m facing a strange issue with VS Code on my Windows 11 machine. A few days ago, I ran a simple Python program that generates matplotlib figures in a for loop. The code does not involve any multiprocessing or multithreading; it simply iterates 8 times, creates a figure using matplotlib, and shows it.
When using matplotlib to display graphics, graphics are unresponsive and the error message is: ModuleNotFoundError: No module named ‘imp’
When using matplotlib in Visual Studio Code to display graphics, graphics are unresponsive and the error message as follows:
Matplotlib Plot Not Responding in VSCode Debug Mode
I’m encountering an issue when trying to plot a simple graph using Matplotlib in Python while in debug mode in VSCode. The plot works perfectly in normal execution mode, but when I set a breakpoint and run the code in debug mode, the plot window becomes unresponsive.