Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

plt.show() hangs on OSX with Anaconda Python

import matplotlib.pyplot as plt
plt.figure()
plt.show()

...crickets. The interpreter hangs and I can't seem to interrupt it.

This is with Python 2.7.9 and Anaconda 2.2.0 (x86_64) on OSX.

Does this happen for anyone else? How can I solve this problem?

like image 840
James Atwood Avatar asked May 06 '15 20:05

James Atwood


1 Answers

Try starting Python using pythonw instead of python.

like image 55
asmeurer Avatar answered Oct 20 '22 09:10

asmeurer