Skip to content
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 hangs on Mac if using PySide #347

Closed
spyder-bot opened this issue Feb 16, 2015 · 11 comments
Closed

Matplotlib hangs on Mac if using PySide #347

spyder-bot opened this issue Feb 16, 2015 · 11 comments

Comments

@spyder-bot
Copy link
Collaborator

From richard....@googlemail.com on 2010-09-10T17:21:18Z

Having installed spyder 2.0beta1 using easy_install on a Mac OSX everything appears fine, but matplotlib plots produce a frame which is empty and hangs. Same behaviour with a standard Python console or IPython, and IPython or Python both plot correctly when not run under spyder. The matplotlib backend doesn't seem to make a difference.

Versions are Python 2.6.6, IPython 0.10. I don't have QScintilla2 installed and test_qsci.py fails, but I understand spyder 2 doesn't need it.

Original issue: http://code.google.com/p/spyderlib/issues/detail?id=347

@spyder-bot
Copy link
Collaborator Author

From richard....@googlemail.com on 2010-09-11T14:44:18Z

The problem was not specifying -q4thread for the console options. Would it be worth detecting -pylab as a command line argument to ipython and if it's present adding -q4thread?

@spyder-bot
Copy link
Collaborator Author

From pierre.raybaut on 2010-09-12T03:14:55Z

Done!

Status: Fixed

@spyder-bot
Copy link
Collaborator Author

From pdawso...@gmail.com on 2013-07-22T10:47:51Z

Hi guys

Im having this exact problem. Plotting from Spyder 2 produces the plot frame and the rainbow wheel but thats where it ends. Running the script from Terminal produces perfect plots every time. I must admit that i don't quite understand the solution proposed above. So far i have tried selecting "Automatic" in the IPython Console Graphic tab, but no change.

Any help would be great. Thanks Peter

@spyder-bot
Copy link
Collaborator Author

From larry.da...@gmail.com on 2013-08-09T13:18:01Z

I'm having the same problem, (or I was) - matplotlib seems to work fine from other instances of python, but is just freezing under spyder 2.2.0 in Anaconda 1.6.1 (x86_64)
I tried resetting the spyder ini with "spyder --reset" but it didn't work, but it showed where the ini files are and when I checked ~/.spyder2/.spyder.ini I found that matplotlib/backend/value was set to a QT4 backend, so I switched it to matplotlib/backend/value = MacOSX
and now it works.

@spyder-bot
Copy link
Collaborator Author

From gleckm...@gmail.com on 2013-09-02T16:30:36Z

Larry,
Could you explain where I can find that ini file? I am having the same problem: the plot window hangs in my Macbook. I don't see any ini files.

@spyder-bot
Copy link
Collaborator Author

From gleckm...@gmail.com on 2013-09-02T17:05:47Z

I found the config.py file within anaconda/lib/python2.7/site-packages/spyderlib and modified the code to show this:
'matplotlib/backend/value': 'MacOSX',

and then I ran config.py but the problem did not go away.
The code snippet used to say:
'matplotlib/backend/value': 'Qt4Agg',

@spyder-bot
Copy link
Collaborator Author

From ccordoba12 on 2013-09-03T12:14:41Z

I'll tackle this for 2.2.4

Status: Accepted
Labels: MS-v2.2.4 Cat-Console OpSys-OSX

@spyder-bot
Copy link
Collaborator Author

From ccordoba12 on 2013-09-03T12:21:26Z

Summary: Matplotlib hangs on Mac if using PySide (was: Matplotlib hangs on Mac)

@spyder-bot
Copy link
Collaborator Author

From ccordoba12 on 2013-09-03T13:28:51Z

This issue was updated by revision 9beea9635ce3 .

  • Change the backend on config.py so that new users pick it up.
  • Also change it on our sitecustomize so that existing users can take advantage
    of this change.

Status: Fixed

@spyder-bot
Copy link
Collaborator Author

From gleckm...@gmail.com on 2013-09-03T19:19:50Z

Hi Carlos,
Is there a straightforward way for me to fix this problem (changing a config file) myself or do I need to wait for the next Spyder revision?
Cheers,
Philip

@spyder-bot
Copy link
Collaborator Author

From ccordoba12 on 2013-09-04T12:43:41Z

Please wait for the next version. It'll be released tomorrow.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant