James Atwood James Atwood - 6 months ago 55
Python Question

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?

Answer

Try starting Python using pythonw instead of python.