Basic Instructions for Getting Set up with EPD Python and Wing IDE on Boreas

The following instructions helped me set up EPD Python and Wing IDE in my home directory. I installed them on boreas.atmosp.physics.utoronto.ca, which is a 32-bit machine. If you don't want to install the files in your home directory, just do instructions 0., 4.-7.

0. Log in to boreas.atmosp.physics.utoronto.ca, e.g.

ssh pjk@boreas.atmosp.physics.utoronto.ca

1. In the install directory type the following:

curl -o epd-7.0-2-rh3-x86.sh http://download.enthought.com/epd-7.0/epd-7.0-2-rh3-x86.sh
bash epd-7.0-2-rh3-x86.sh

Scroll to bottom of license agreement, type "yes" and enter, and accept default directory "epd-7.0.2-rh3-x86" for install. The install takes a while.

2. Because EPD upgrades its python distributions frequently, it is useful to have a generic directory link. I set up a symbolic link with the following:

ln -s ~/epd ~/epd-7.0.2-rh3-x86" in the shell.

3. To install Wing, type

curl -o wingide-101-4.0.2-1-i386-linux.tar.gz http://wingware.com/pub/wingide-101/4.0.2/wingide-101-4.0.2-1-i386-linux.tar.gz
tar xzvf wingide-101-4.0.2-1-i386-linux.tar.gz
cd wingide-101-4.0.2-1-i386-linux
python wing-install.py

You need to select install directories. I chose
/home/pjk/wingide
for both. [This is not consistent with my convention for epd, but that's what I did for now.]

4. Now you need to have this new software in your path so the commands are easy to run. I recommend the following: in ~/.bashrc add the following lines:

export PATH=/home/pjk/wingide:/home/pjk/epd/bin:$PATH

If you have another default shell, you will need to modify your path consistently with its syntax.

I also recommend creating a place where you can place python modules that will be accessible by your python environment. For example I use

mkdir -p /home/pjk/bin/python

and then add to .bashrc
export PYTHONPATH=/home/pjk/bin/python:$PYTHONPATH

5. Now, to test things open a NEW shell and run Wing IDE:

wing-101

6. In Wing IDE, open a new file and type
from matplotlib.pyplot import plot
plot(range(10),range(10))

and run this. You should get a basic plot.


7. Then you can play around. There are a lot of good examples in
/home/pjk/epd/Examples
E.g. you can run
/home/pjk/epd/Examples/basemap-1.0/contour_demo.py
to show you how to use basemap contour plotting.

The compwiki.physics.utoronto.ca site content is Copyright 2011 Department of Physics, University of Toronto.