-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
Cannot plot inline in IPython console on Linux #2257
Comments
I can confirm: %matplotlib inline
import matplotlib.pyplot as plt
plt.plot([1,2,3])
Out[3]: [<matplotlib.lines.Line2D at 0x7fc1e46c5f60>]
It seems the kernel died unexpectedly. Use 'Restart kernel' to continue using this console. |
Works fine with Py2.7. |
...and it works fine from a standalone IPython QtConsole with Py3.4. |
I used IPython 3.0.0 in both cases. |
I was about to release 2.3.4 tomorrow but this seems pretty serious. I can't reproduce it on my end with pip installed mpl 1.4.3 and Python 3.4.0. It seems to be an issue with mpl or Anaconda or both. Edit: I'm also using IPython 3.0 |
Is |
|
Also for me. |
What about mpl 1.4.2 and/or Python 3.4.2? |
Tried both (one at a time) and kernel is still dying. |
Ditto. |
@stonebig, have you seen this problem on WinPython? This really seems a compilation bug to me. I don't understand what we can be doing to make the kernel crash. What if you try to use 2.3.4dev or 2.4dev? I made some commits to change how we set the mpl backend that could help in this case... |
Checking older Spyder versions (in the 2.3 series) would be useful too :-) |
Works fine in 2.3.2. |
@petebachant, great, some progress!! Could you use |
I don't know how to do that; sorry! I did, however get the console to plot SVGs, and noticed this commit: ac52a4a. Maybe the dpi for PNGs is being set incorrectly? |
I just noticed that spinbox does not work in 2.3.3. |
I'll take a look at that tomorrow. Thanks a lot for the feedback @petebachant, perfect timing! |
Well, I don't see the problem on winpython with python3.4.3 32 bit + Spyder 2.3.3 + Qt4.8.6 + windows 7 64bit. https://github.com/petebachant, you may check it works with IDLE, in case it is your graphic driver:
|
I also do not have the problem on Windows, and have tried on multiple systems with different graphics drivers. An IPython Qt console can plot inline externally without a problem. I think this is a Spyder issue. |
So this is on Linux? It's true that the issue title says it, but the description mentions Windows. That's why I asked @stonebig about it. @petebachant, are you using Kubuntu, or KDE, as your main desktop, by any chance? |
This is on Linux only (for me anyway). I have had the problem on both XFCE and Cinnamon desktops. |
Could you create a new conda environment and install the new PyQt packages I'm working on? For that you need to run this command after creating the env:
Then you need to install IPython and Spyder with
Try to see if this error happens in that env too |
I gave that a try. Could not load Spyder without some additional dependencies. Once I got to that point I didn't have the IPython Qt console, which wants to downgrade Qt to install. |
@blink1073, help me out here, please. Since you're able to reproduce this error, could you run |
Ok, I fixed the problem with the inability to change our dpi value. This will be part of 2.3.4 |
Sorry Carlos, I was travelling today. |
Found it:
|
Quicklink: 08596df |
Thanks @blink1073! It was easier to narrow down the problem after that :-) |
Using 2.3.3 with Python 3.4.3 installed via Conda. Attempting to plot via matplotlib inline in the IPython console kills the kernel. I am not having this problem on Windows.
The text was updated successfully, but these errors were encountered: