I can run the following code fine from a regular cmd shell:
import matplotlib.pyplot as plt
fig = plt.figure()
plt.show()
It launches a Matplotlib window. However, running inside Emacs using shell or py-shell: the buffer just hangs and no window is launched. What's going on here and how can I fix it?