-
-
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
Matplotlib Gtk backend is broken in Python consoles #2471
Comments
There's no revision 10311, I mean that doesn't correspond to any git hash. Please report the right revision. Besides, master has moved to support only IPython version 3 or higher. That's probably the reason you're not seeing it. |
Sorry Carlos, I still use mercurial on my machine and pull with hg-git, I forgot the revision numbers are all changed. |
Hmm, ok I will take a look |
@goanpeca, the problem is |
And according to @anderwm, the problem is in the Python console, with the |
I now believe it is 2 unrelated issues. The warning from goanpeca/language goes away before his merge, but the python console problem remains until before commit 6bbd031 |
Ok, thanks. I'll take care of the second problem then :-) |
I was aware of the warning, but it seem harmless so I ignored it 😸, but I can make a fix to get rid of it. |
@goanpeca, please do :-) This is too visible and so something please will keep complaining about. |
@ccordoba12 for the language fix there are two ways... 1.) Either rename the locale folders to valid names... (and from now on make sure translations are places in a correctly named directory) or 2.) to make a mapping inside baseconfig so that when en is loaded it turns to en_US. The first one would make it more future proof so I would prefer that one... but the gettext script would have to be changed as well. The second one is easier to implement but would become too hacky eventually... Let me know |
I'm sorry but I'm going to remove support for the Gtk backend in our Python Consoles for Spyder 3. You can still use it without problems in our IPython consoles :-) I tried to make it work for several hours this weekend and couldn't do it. It seems to be caused by a tricky interaction between Qt and Gtk event loops. Since this backend doesn't provide any additional functionality over the Qt or Tkinter ones (which are working as expected), then I don't see the need to spend more time trying to support it. |
I may be missing something as I don't fully understand how all the backend systems hook in. However, I am using Qt4Agg as the matplotlib backend as selected in console settings under preferences. I am not sure how we got onto gtk, except that was the warning message for the locale problem. As far as I can tell the lost keystroke problem is not GTK specific. |
The problem I was having was resolved, according to bisect: The first good revision is: |
@anderwm, sorry, I thought you were using the I already referenced this issue from a commit that I'm about to push, so let's leave it like this in case someone else looks for us dropping |
Starting with 10312, the standard console starts with warning :
(process:4958): Gtk-WARNING **: Locale not supported by C library.
Using the fallback 'C' locale.
Pressing enter gets me the prompt, but none of my keystrokes appear. Also, there is no option for Ipython console (which was available before 10312). Am I the only one seeing these kinds of problems? I am on Ubuntu 15.04
The text was updated successfully, but these errors were encountered: