Then added 3 lines to my .cshrc:
# STSci Python IRAF etc
if ( -f /usr/stsci/envconfig.mac/cshrc ) source /usr/stsci/envconfig.mac/cshrc
iraf
Checking, "which python" returns:  /usr/stsci/pyssg/Python-2.7/bin/python   
Good.  Next, "ipython -pylab" , and then make the Hello World plot:
x = randn(1E5)
hist(x,100)
Hell yeah, I made some python.

No comments:
Post a Comment