Lecture 1: Course Overview & Big Ideas
PDF files of the lecture slides handouts.
This chapter explains the cs1graphics library, which is used frequently in our course. It is important to read it as preparation for this week's lab and the first homework.
In order to run Python code during class, you will need to launch the Canopy 3.5 Python app:
(Do not launch the app named just
Canopy; that loads the wrong version of Python!) The first time you launch Canopy 3.5, it will take a while to initialized your environment; be patient.
While Canopy 3.5 is loading, click on this lec_course_intro.zip link to download the
.zip file to your computer. Unzip the downloaded lec_course_intro.zip file (by double-clicking on it) to reveal a folder with a few files we will use during lecture. Note that some computers may automatically unzip the file after you download it.
Here is a description of the content of the files in this folder:
lec_course_intro.ipynb: The ending
.ipynbstands for interactive python notebook. This is a special file that you can open with Canopy, which we'll use often during lectures. You will not be creating such files yourselves. Every input cell is "run" independently of the others. However, order matters, especially when some variables are declared in previous cells. You can save all changes to this file (the outputs of the instructions), and "relive" the lecture at your pace. Alternatively, you can download the file again and test yourself in the short activities that these notebooks contain.
cs1graphics.py: This is a Python module that needs to be present in order for us to create the Tinman graphics. You will not need to open or run the code of this file. We will only import its content in our program via a special Python instruction.
tinmanWithGrid.py: The script version of the Tinman graphics, which adds two function calls to draw the reference points and a grid.
cs1graphicsHelper.py: The script that contains the functions used to draw reference points and the grid.