Friday, January 27, 2012

Let's get this party started

First I need to download stsci_python, the python (and other stuff) package that my sysadmin recommends.

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