Configuring your SSH client (Putty)

You can configure the client when it starts up or for the current session (in which case you need to click on the icon in the top left corner).

The next time you start the client, click on your saved session and then "Open".

Using Python on the Unix server

Type python at the command line. This starts the interactive mode. You can now type commands. To leave the interactive mode press the control key followed by D.

In order to use sympy and to set python to accept certain conventions, you should copy and paste the following code after you start python. (Use the right mouse button for pasting.)

Please be patient, the import takes a few seconds.

from __future__ import division
import sys
sys.path.append('/home/cs170/sympy/')
from sympy import *
sys.displayhook = pprint
You need to do this whenever you start python.

Save the Python settings permanently

Type pico .pythonstartup to create a file. Save the following lines to that file:
from __future__ import division
import sys
sys.path.append('/home/cs170/sympy/')
from sympy import *
sys.displayhook = pprint
If you are using a c-shell (type printenv SHELL to check), add this line to your .cshrc file:
setenv PYTHONSTARTUP ~/.pythonstartup
If you don't have a .chsrc file, create it. After you have edited or created the .cshrc file, type source .cshrc to check whether the file has no errors. If you don't understand this, are not using a c-shell or if you get error messages, please ask for help. If you mess up this file, you will not be able to login to your account anymore.