CS8, UCSB
Software To Get

Return to CS8 home page

What you need to install

What you need to install depends on whether you have Windows, Mac, or Linux

Windows

For Windows, the most important download is PuTTY. Xming and Python 3.x are also desirable.

  1. Download and install PuTTY by following the instructions here:
    http://www.cs.ucsb.edu/~pconrad/topics/CSILviaPutty/
  2. If you want to use IDLE from PuTTY (i.e. if you are getting the "no DISPLAY" error message when you try to start IDLE using, for example, ~pconrad/cs8/cs8idle), then download XMing as well.
    • Download from: http://sourceforge.net/projects/xming/
    • Install
    • You must run XMing before you start PuTTY. When you double click on it, nothing will appear to happen, but XMing is running.
    • Inside PuTTY, find the options menu, then "ssh", then "X11" and click the box for "X11 forwarding".
    • For best results, instead of connecting to csil.cs.ucsb.edu, pick one of the machines on this map (at random) and connect to it instead. (Each machine ends in .cs.ucsb.edu, e.g. snarf.cs.ucsb.edu, homer.cs.ucsb.edu, etc.). You'll get less lag that way.
  3. If you want to run Python locally, download the latest stable version of Python 3.x from www.python.org
    • Double click to install—just take all the defaults.
    • Create a directory c:\cs8, and then put cTurtle.py into that directory.
    • Test by trying the test code below

Mac

If you have a Mac, the only thing you might want to install is Python 3.x—you don't need XMing or Putty.

Steps:

  1. Download the latest stable release of Python 3.x from www.python.org
  2. Double click to install—just take all the defaults.
  3. Create a directory /Users/Shared/cs8, and then put cTurtle.py into that directory.
  4. Test by trying the test code below

If you want to access CSIL instead of running locally, follow the instructions here:

http://www.cs.ucsb.edu/~pconrad/topics/CSILFromMacOrLinux/

Linux

If you have a Linux, you only need to install Python 3.x—you don't need XMing or Putty. Visit www.python.org to find the necessary download, or try the package manager for your version of Linux (apt, yum, rpm, whatever.)

If you have Linux, you can probably figure out how to do that on your own—and how to adapt the instructions for Mac to your Linux box. You just need to pick someplace to store the cTurtle.py module, and use that path inside the sys.path.append() function call instead of /Users/Shared/cs8. The directory doesn't matter—it just has to be some directory that you have access to.

If you want to access CSIL instead of running locally, follow the instructions here:

http://www.cs.ucsb.edu/~pconrad/topics/CSILFromMacOrLinux/

 

Some code to test whether cTurtle is working

Here is some code to test whether cTurtle is working.

# test whether cTurtle works---for CS8, Fall 2010
#

# This next part is ONLY needed if you are on your personal Windows machine:

import sys
sys.path.append("C:\cs8")

# This next part is ONLY needed if you are on your personal Mac OS machine:

import sys
sys.path.append("/Users/Shared/cs8")

# This part is always needed---it says: we are going to use cTurtle functions

import cTurtle

# This sets up a turtle named "fred"
# It is an example of an assignment statement

fred = cTurtle.Turtle("turtle")
    
# move fred forward 100 pixels, then turn right.
 
fred.forward(100)
fred.right(90)

     
     

 




Valid XHTML 1.1 Valid CSS!