Matplotlib forced on qt4 with Spyder
See original GitHub issueHello everybody,
I recently reinstalled Anaconda, since I was still using python 2 and since, I can’t plot anything with Matplotlib
even the simplest code:
import matplotlib.pyplot as pyplot pyplot.plot([1, 2, 3, 4, 5, 6],[4, 5, 1, 3, 6, 7]) pyplot.show()
raises an exception:
"Cannot load backend ‘Qt4Agg’ which requires the ‘qt4’ interactive framework, as ‘qt5’ is currently running "
No matter what I do to force matlab on qt5, each time I run my code, it wants to go on qt4. On the other hand, everything works fine on Conda (but it is less convenient to code there) Do any of you happens to know the why and how of this problem?
Versions
Spyder version: 3.3.6 Python version: 3.7 Qt version: 5.9.6 PyQt version: 5.9.2 Operating System name/version: win32 - Windows 10
Dependencies
IPython >=4.0 : 7.6.1 (OK)
cython >=0.21 : 0.29.12 (OK)
jedi >=0.9.0 : 0.13.3 (OK)
matplotlib >=2.0.0: 3.1.1 (OK)
nbconvert >=4.0 : 5.5.0 (OK)
numpy >=1.7 : 1.16.4 (OK)
pandas >=0.13.1 : 0.24.2 (OK)
pycodestyle >=2.3 : 2.5.0 (OK)
pyflakes >=0.6.0 : 2.1.1 (OK)
pygments >=2.0 : 2.4.2 (OK)
pylint >=0.25 : 2.3.1 (OK)
qtconsole >=4.2.0 : 4.5.1 (OK)
rope >=0.9.4 : 0.14.0 (OK)
sphinx >=0.6.6 : 2.1.2 (OK)
sympy >=0.7.3 : 1.4 (OK)
Issue Analytics
- State:
- Created 4 years ago
- Comments:11 (6 by maintainers)
Top GitHub Comments
Hi I am getting Error Cannot load backend ‘Qt4Agg’ which requires the ‘qt4’ interactive framework, as ‘qt5’ is currently running Tell me how to resolve it…?
I’m sorry but I don’t know what happens in your case. The only solution that occurs to me is to go to
deactivate the option called
Activate support
and run directly%matplotlib qt5
in our consoles.