-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
3.2.5 fails to activate Matplotlib Qt5 backend #6091
Comments
FWIW, here is the versioning info from my working Windows 7 Python 3.6 environment: Version and main components
Dependencies
� |
Hmm, Ipython 6.2.1 (broken) versus 6.1.0 (working) significant? |
Ok, yes I can confirm that downgrading to IPython 6.1.0 fixes this issue - looks like something changed between 6.1 and 6.2.1 in a way that spyder didn't like... may not be a 3.2.5 problem at all. |
I can't reproduce this on Linux. Please let us know if you find how to do it. Also, please notice that Spyder is telling you this:
|
Ok, I can reproduce it with the following steps: conda create -n testing python=3.6.4 spyder=3.2.5 Here's my testing conda environment so you can see everything that is installed in it if that helps: name: testing
|
I see, so the problem is with the Automatic backend. Thanks for tracking it down! |
Still can't reproduce it, sorry. |
I am seeing the same problem as @gb119 on Windows 8.1 in WinPython-64bit 3.6.4.0Qt5b2, which includes "spyder-3.2.6dev20171230+". My preferences include IPython console > Graphics > Backend=Qt5, so the problem is not only with the Automatic backend. I reverted this WinPython environment to Spyder 3.2.4, and the problem goes away. |
I reproduced this problem, the key to it was restarting Spyder. I'll take a look at it for 3.2.6. |
To reproduce the problem of "NOTE: Spyder can't set your selected Matplotlib backend because there is a previous backend already in use. Your backend will be Qt5Agg", the default preferences plus "IPython console > Graphics > Backend=Qt5" is sufficient. In other words, enabling "IPython console > Graphics > Automatically load Pylab and Numpy modules" is not necessary. Thus, the title of this PR could be changed to make the issue more clear. Something like "3.2.5 or IPython 6.2 Fails to use Qt5 or Automatic backend for matplotlib in Python 3.6". |
Description
Having updated to 3.2.5 in both a Python 2.7 and Python 3.6 conda environment, I've noticed that in the 3.6 environment, pylab and numpy are not automatically loaded into the console despite the option being ticked and the startup banner message being correct. In the 2.7 environment this is all fine.
This appears to be just on my linux x64 box, my windows 7 x64 seems to be fine, so possibly some weird versioning problems?
What steps will reproduce the problem?
ython 3.6.3 | packaged by conda-forge | (default, Oct 5 2017, 14:07:33)
Type "copyright", "credits" or "license" for more information.
IPython 6.2.1 -- An enhanced Interactive Python.
Populating the interactive namespace from numpy and matplotlib
NOTE: Spyder can't set your selected Matplotlib backend because there is a previous backend already in use.
Your backend will be Qt5Agg
In [1]: sin
Traceback (most recent call last):
File "", line 1, in
sin
NameError: name 'sin' is not defined
What is the expected output? What do you see instead?
Something more like the 2.7 environment:
Please provide any additional information below
Python 2.7.13 | packaged by conda-forge | (default, May 2 2017, 12:48:11)
Type "copyright", "credits" or "license" for more information.
IPython 5.4.1 -- An enhanced Interactive Python.
? -> Introduction and overview of IPython's features.
%quickref -> Quick reference.
help -> Python's own help system.
object? -> Details about 'object', use 'object??' for extra details.
Populating the interactive namespace from numpy and matplotlib
In [1]:sin
Out[1]: <ufunc 'sin'>
Version and main components
Dependencies
The text was updated successfully, but these errors were encountered: