The following documents and resources are useful for CS-1004 this term:–

Graphics package

The graphics package described in Chapter 4 of the textbook can be downloaded from http://web.cs.wpi.edu/~cs1004/a14/Resources/graphics.py. This is the same package made available by the author at his web site, described on p. 479.

Windows Installation Guide and Installers

The installation guide can be found at the following links in .docx format and .pdf format. It expands on the installation instructions provided in Appendix B of the textbook, Python Programming: An Introduction to Computer Science, 2nd edition, by John Zelle.

It is a good idea to print out the installation guide, because just when you need it most, a key instruction is likely to be obscured by a windows or dialog box of one of the installers.

Windows Installers

The 32-bit version of Python 3.4 is here:–

Windows/python-3.4.1.msi

The numpy 1.8.1 and matplotlib 1.3.1 installers are here:–

Windows/numpy-1.8.1-win32-superpack-python3.4.exe
Windows/matplotlib-1.3.1.win32-py3.4.exe

In order to run matplotlib, you also need to install the following supporting packages, even though you may not ever use any of their features:–

Windows/python-dateutil-2.2.win32-py3.4.exe
Windows/pyparsing-2.0.2.win32-py3.4.exe
Windows/pytz-2014.4.win32-py3.4.exe
Windows/six-1.7.3.win32-py3.4.exe

The following text file summarizes the contents of the installation directory for Windows:–

/Windows/README.txt

 

Macintosh and Linux Installation Guide and Installers

The Macintosh and Linux installation guide can be found at the following links in .docx format and .pdf format. It expands on the installation instructions provided in Appendix B of the textbook, Python Programming: An Introduction to Computer Science, 2nd edition, by John Zelle.

It is a good idea to print out the installation guide, because just when you need it most, a key instruction is likely to be obscured by a windows or dialog box of one of the installers.

Macintosh Installers

The following installer supports both 32- and 64-bit Macintosh computers:–

Macintosh/python-3.4.1-macosx10.6.dmg

You also need to update ActiveTcl (which is already part of Mac OS X) to be compatible with Python 3.4.1:–

Macintosh/ActiveTcl8.5.15.1.297588-macosx10.5-i386-x86_64-threaded.dmg

The numpy 1.8.1 and matplotlib 1.3.1 installers for Mac OS X 32-bit and 64-bit systems are here:–

Macintosh/numpy-1.8.1-cp34-cp34m-macosx_10_6_intel.macosx_10_9_intel.macosx_10_9_x86_64.whl

Macintosh/matplotlib-1.3.1-cp34-cp34m-macosx_10_6_intel.macosx_10_9_intel.macosx_10_9_x86_64.whl

Both of these must be installed using the “sudo pip3 install” command from a command Terminal. They will automatically download and install supporting packages as necessary.

The following text file summarizes the contents of the installation directory for Mac OS X:–

Macintosh/README.txt

Linux Installers

No separate installers are provided for Python, numpy, and matplotlib. Instead, these should all be downloaded by and installed using the software distribution tool with your Linux desktop distribution. The installation guide uses Ubuntu 14.04 as a Linux example; this should serve as a pattern for other Linux systems.