I've installed Enthought Canopy 64-bit onto my Mac OS X v10.8.5 (Mountain Lion), and within the Canopy command-line I can enter import matplotlib
and matplotlib.pyplot.plot([1,2,3,4])
and a plot window opens up just fine.
But when I run the exact same two lines in the Canopy editor window I get nothing, no plot window, no error.
Notes: When I run matplotlib.get_backend()
I get an output of Qt4Agg
, which is the same no matter if I run it in the command line or in the editor window.
ANOTHER NOTE: for some mysterious reason, when I click Canopy → Preferences I see that "Canopy is NOT your default Python environment", which is weird, because I when I run import sys
then sys.prefix
I get /Users/damon/Library/Enthought/Canopy_64bit/User
, which is supposed to guarantee that Canopy IS my default Python environment.
How can I fix this?