I have a conda python 3.6 environment registered as the default
ExternalEvaluator with numpy, matplotlib, cv2, and PIL installed:
I'd like to show images and plot things (like one does from ipython shell, jupyter or spyder), for instance:
import numpy as np import matplotlib.pyplot as plt fig, ax = plt.subplots() ax.plot(10*np.random.randn(100), 10*np.random.randn(100), 'o') ax.set_title('Plotting with Python inside Mathematica') plt.show()
But this fails and no x-window pops up. Is there a simple fix?
Oddly enough, this works intermittently but instead of failing however, the window it creates (which is at first hidden) is a zombie window that I can't close (look at the red circle x in the top left corner - it is not clickable)!