Description
Bug summary
I have a very basic code on my work computer to create a plot in Spyder using Matplotlib. I am new to Mac OS and installed Spyder through a standalone installer as my organization does not allow Anaconda. I have the most updated versions of Matplotlib, Spyder and Python. On running the code to generate an interactive plot, I see a white window that's frozen and hangs up. I can run Spyder only after I force quit the window.
Also, my backend is set to Automatic (Spyder-->preferences-->IPython console-->Graphics-->Backend-->automatic).
Plot works fine when I set it to inline but the disadvantage there is that it's not interactive.
Code for reproduction
import matplotlib.pyplot as plt
a=[1,2,3,4,5]
b=[1,4,6,8,10]
plt.plot(a,b)
plt.show()
Actual outcome

Expected outcome
I was expecting to create a plot that works fine when I set backend to 'inline'
Additional information
No response
Operating system
Mac OS
Matplotlib Version
3.8.0
Matplotlib Backend
Qt5Agg
Python version
3.9.6
Jupyter version
No response
Installation
pip