See https://stackoverflow.com/questions/70072297/pyplot-buttons-do-not-work-reliably-on-windows-10. I have only tried Python 3.7 as installed in Visual Studio 2019 ...
Some results have been hidden because they may be inaccessible to you
Show inaccessible results