-
-
Notifications
You must be signed in to change notification settings - Fork 7.9k
Backend MacOSX keyboard not working #8982
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
Comments
We are working on a fix for the mixed resolution monitor problem (or it
might have just been merged recently).
Are any keyboard bindings working, or is the problem just for the text
entry widgets?
…On Wed, Aug 2, 2017 at 4:39 PM, agallenne ***@***.***> wrote:
Hi,
I am on MacOS and using the MacOSX backend. When a plot is displayed and I
want to save it, I cannot change the name or go right/left in the text
entry, the keyboard is not working. It was working properly before with
matplotlib 1.5.1, now I upgraded to 2.0.2 (with anaconda). For now I am
using the PyQt5 backend, which is OK, but if I move my plot to my second
monitor (higher resolution), the window size stays the same but not the
plots which is over-zoomed :-/ Any ideas to make the MacOSX backend works
or solved the "dpi" issue for PyQt5?
- Operating System: Mac OSX 10.12.6
- Matplotlib Version: 2.0.2
- Python Version: 2.7.13
- Jupyter Version (if applicable):
- Other Libraries:
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#8982>, or mute the thread
<https://github.com/notifications/unsubscribe-auth/AARy-GcNbZ278bcln5HxBYXJNpmaR_Gwks5sUN5ogaJpZM4OroF1>
.
|
Keyboard bindings are not working either. Other things like zooming seem to work correctly. |
#8931 fixed the mixed resolution issue on Qt5. I'm not seeing the same issues as you on the OSX backend, so maybe it's a python 2 only issue. |
Ok thank you very much. Do I have to make the changes from #8931 in the .py files myself or I can download them somewhere? |
Well, if I copy and past the corresponding corrected file (backend_qt5.py), I have the following error when starting ipython: "ImportError: cannot import name _Backend". |
That file also depends on other files that have changed since 2.0.2 has been released, so just copying that file will not work. I'll let the OSX devs comment on the best way to install off master. |
How exactly The problem with mac may be related related to IPython's switch from readline -> prompt toolkit (but if zoom is working, that may not be the issue). Have you tried doing There are also issue with osx + 'framework' builds see http://matplotlib.org/faq/osx_framework.html#osxframework-faq |
Zoom is indeed working for the macosx backend (note that I used a terminal to run python with: ipython --pylab). It worked before with previous version of matplotlib and ipython. What about PyQt5 and the changes from #8931, how can I make them work on my computer? |
Those changes are in master now, so you could checkout the master branch
and do a fresh install from source.
…On Thu, Aug 3, 2017 at 9:41 AM, agallenne ***@***.***> wrote:
Zoom is indeed working for the macosx backend (note that I used a terminal
to run python with: ipython --pylab). It worked before with previous
version of matplotlib and ipython. What about PyQt5 and the changes from
#8931 <#8931>, how can I
make them work on my computer?
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#8982 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AARy-EZoOxu_hbFNojhHvHiroE32NPLwks5sUc4JgaJpZM4OroF1>
.
|
I did it yesterday and it did not change anything unfortunately. |
Ok, so I removed all matplotlib versions I had in my .../site-packages/ directory, and installed the fresh one. The PyQt5 mixed resolution display (#8931) issue is fixed for me now. Thanks. |
@mdehoon Any guidance on what is wrong with the native backend? |
Now that I removed some matplotlib versions, I have the error saying that python is not installed as a framework, so back to the link you sent. |
With conda you can do |
I use ipython --pylab |
side-note: the use of --pylab is discouraged and has been for some time. It
is fine for one-off interactive sessions that feel like matlab, but because
the --pylab is at the command-line, any code in the ipython history
implicitly depends on that action, which may not be clear to others if you
share your code snippets.
…On Mon, Aug 7, 2017 at 1:29 PM, agallenne ***@***.***> wrote:
I use ipython --pylab
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#8982 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AARy-B9H19lCmU-uuzrY9_EJPTwApFZCks5sV0l8gaJpZM4OroF1>
.
|
I can't get IPython to run with the osx backend. If I run a plot from the command line using |
The issue in IPython is likely missing integration with prompt toolkit (attn @Carreau ) |
@dopplershift I can't get ipython to rin the macos backend either. It gives me the "Framework required" error... |
I observed this issue on a number of systems today, but did not get details of IPython / OSX versions, but mostly with mpl 2.1 (I think?). |
@jklymak, in a conda environment, this works for me with matplotlib 2.1.0.post222+gad730d131 (which is just what I happen to have in that environment at the moment):
|
Ah OK, didn't think to try a magic! Thanks! |
Oh, and the |
...but the buttons don't work quite right. Very strange. Zoom and pan seem to work, but home, backwards, and forwards are erratic. |
Both the forward/back/home buttons and the keyboard events are working fine for me with the current v2.1.x branch in IPython (using |
Hi,
I am on MacOS and using the MacOSX backend. When a plot is displayed and I want to save it, I cannot change the name or go right/left in the text entry, the keyboard is not working. It was working properly before with matplotlib 1.5.1, now I upgraded to 2.0.2 (with anaconda). For now I am using the PyQt5 backend, which is OK, but if I move my plot to my second monitor (higher resolution), the window size stays the same but not the plots which is over-zoomed :-/ Any ideas to make the MacOSX backend works or solved the "dpi" issue for PyQt5?
The text was updated successfully, but these errors were encountered: