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/a18/Resources-A18/graphics.py. This is the same package made available by the author at his web site:– http://mcsp.wartburg.edu/zelle/python/

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, 3rd edition, by John Zelle.

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

Windows Installers

The 64-bit version of Python 3.6.5 is here:–

Windows/python-3.6.5-amd64.exe

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

Windows/python-3.6.5.exe

The packages numpy 1.14.0, matplotlib 2.2.2, or nose 1.3.7 are NOT distributed via this website. Instead, they are install from online via a command prompt with the following commands:–

python -mpip install -U pip
python -mpip install -U matplotlib
python -mpip install -U nose

The second of these commands (“install -U matplotlib”) automatically downloads the appropriate version of numpy.

The following text file is intended primarily for experts; it summarizes the contents of the installation directory and provides very brief instructions for Windows:–

Windows/README.txt

 The following document is intended for students in courses such as CS-1004; it provides a step-by-step “cookbook” for installing Python, Numpy, and Matplotlib on your own Windows laptop or desktop computer.

Windows/SettingUpPython_Windows.docx and Windows/SettingUpPython_Windows.pdf

 

 

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 is a good idea to print out the installation guide, because just when you need it most, some key instruction is likely to be obscured by a window or dialog box of one of the installers.

Macintosh Installers

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

Macintosh/python-3.6.5-macosx10.9.pkg

 

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

Macintosh/numpy-1.14.5-cp36-cp36m-macosx_10_6_intel.macosx_10_9_intel.macosx_10_9_x86_64.macosx_10_10_intel.macosx_10_10_x86_64.whl

Macintosh/matplotlib-1.5.1-cp35-cp35m-macosx_10_6_intel.macosx_10_9_intel.macosx_10_9_x86_64.macosx_10_10_intel.macosx_10_10_x86_64.whl

Both must be installed using the “pip3 install” commands from a command Terminal as follows: –

pip install -U pip
pip install –U matplotlib
pip install –U nose
pip list

These 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.