You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Related to #1065 (but opening a new issue as this is not a Qt problem but how the matplotlib rc is patched AFAIU). Also reported it at matplotlib: matplotlib/matplotlib#7124 (comment)
When you do a fresh conda install matplotlib, this now installs qt/pyqt 5.x instead of 4.x.
But as far as I understand, anaconda patches matplotlib to default to qt4 backend. With the consequence that you get a ImportError: No module named 'PyQt4' error if you do not specify the backend to qt5agg manually.
Possible workarounds for now (either one of the two):
pin pyqt to 4.11
set the backend manually before importing pyplot (matplotlib.use('qt5agg'))
FrankNiemeyer, David-OConnor, surchs, amelio-vazquez-reina, lematt1991 and 11 more