-
-
Notifications
You must be signed in to change notification settings - Fork 7.9k
macosx broken on python 3.4 non-framework builds, shaky on framework #3367
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
@mdehoon any thoughts? If we are going the drop-osx-backend route, I assume we should only do it for python3? |
Although it is better on 2.7, I think it still has known problems and major limitations with non-framework builds. Abandoning it would be unfortunate--it is the only interactive backend that is always available on the Mac, without requiring installation of some other enormous and problematic package (e.g., TkTcl, PyQt4, PySide). |
Progress: it seems that Anaconda is inconsistent, and the intention is for ipython to be run under a framework, but this is not yet happening in 3.4. Chris Barkier and I are still arguing for the framework simply to be the standard python there, so that the ipython script would not have to do anything special, wx apps would work, etc. |
@mdhoon, the "flakiness" that I noted even with the framework python occurs in 2.7 and 3.4--but only when the cursor is moving between my terminal window and the plot window, not when it enters the plot window from the desktop background. So, there is some sort of interaction between the terminal app and the plot window. It is in the "minor irritation" category, but if you can think of a way of fixing it with a small change in the macosx backend, that would be good. |
@mdhoon, another question: Is there an easy way to detect at runtime whether mpl is in a python framework build? If there is, then at the very least a warning could be generated if the macosx backend is loaded. |
I have a vague recollection of attempts to detect the framework build back On Thu, Aug 14, 2014 at 8:15 PM, Eric Firing notifications@github.com
|
@efiring : Previously we had a runtime check to see if Python is a framework build, but it turned out not to be reliable; see issue #665 . In Python 2 there is a MacOS module that can be used instead:
but this module has disappeared in Python 3:
Currently we are checking at compile-time whether we have a framework build (by checking for WITH_NEXT_FRAMEWORK in the C code; this variable is declared in pyconfig.h).
Do we still support Python 3.0 and 3.1? If so, somebody needs to check which of these methods work there. If not, then we can use these methods to check at run-time if we are using a framework build. It would be good also if you guys can also check if these methods give the correct answer on your machines. |
@efiring : I have not noticed any flakiness with the macosx backend with regular python. If this problem occurs with ipython only, the origin may lie there. |
< 8000 a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/ivanov/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/ivanov">@ivanov sorry to keep bothering you, Ybut you are a known ipython/mpl connection. Can you bring this to the attention of the proper people in ipython land? |
but Anaconda 2.7 and 3.4 both yield [TAC, edit to fix medhoon's user id] |
I have removed the release_critical label because I think the Anaconda-specific problem will be solved promptly by Anaconda. There are still a bunch of problems floating around:
|
The revised Anaconda ipython for 3.4 is out, and it works. |
Regarding problem 3 above, see ipython/ipython#6189. |
This seems to have been a combination of up-stream issues. I am tagging at as such an closing as the ipython PRs have been merged and anaconda builds have been updated. |
To reproduce: on Mavericks with Anaconda 2.0.1, python 3.4, Anaconda's default mpl 1.3.1, in ipython:
This brings the plot up in a window that cannot even be resized.
I made a modified version of ipython the ipython script:
and with this, the plot seems OK, except that it doesn't always register the "enter" event; when the window is selected, moving the cursor from outside to inside sometimes triggers interactivity (the cursor position is shown when inside the axes), but sometimes it doesn't. Moving the cursor inside more slowly seems to help, but it is not very predictable. This flakiness is confirmed with mpl 1.4.0rc3 using homebrew python3.4 with pip-installed ipython; these now link to the framework build.
I was not successful in building mpl from git in the Anaconda environment; shared libraries were not found. Therefore I have not tested the rc3 with the Anaconda default python 3.4.
The text was updated successfully, but these errors were encountered: