Class 1. Introduction and Central Park

Class 1-Introduction to the class and Python.

Why iPython?

Pick up Python from Nature

Before Class:

  1. Install Anaconda (see notes below and Watch Video).

Installing Anaconda

  1. WE ARE USING PYTHON 3 this year!
    1. goto https://www.continuum.io/downloads
    2. scroll down a bunch to where it lists operating systems. We are up to 3.9.x
    3. for windows download the 64 bit installer
    4. for macs download the command line installer.
    5. UPDATE Just do the installer.  If it fails then we can do the command line.
  2. ON YOUR COMPUTER
    1. On a Mac.  UPDATE Just do the installer.  If it fails we can do the command line.
      1. This is critical.  You need to do the command line installer.  I am updating the video
      2. this is the link for installing on macs.
      3. Install like above.  But to run I open terminal.  You can open terminal by typing “terminal” in the search icon.  Then at the prompt type “jupyter notebook”
    2. On a PC
      1. I run anaconda on my PC.  It has a quirk. Install it.  But then my launcher always crashes.  To work around.
      2. Instead of opening installer open the anaconda command prompt.  If you can’t open this, go to the file browser and open a new “Anaconda Prompt” window.
      3. once open type “cd /” to get to root directory.  This gives you access to all your directories on your hard drive.  I Can’t run from here.
      4. type “dir” to get your list of directories.
      5. change to the directory you want to use using cd and you are ready.
      6. now type “jupyter notebook”.
      7. You should have notebook now open in your browser
  3. ON THE MILBANK 222 MACS
    1. due to technical issues we can’t permanently install anaconda so we have to install it every class. the installer is on the root level of the hard drive.
    2. Google Anaconda Python
    3. Click on the MAC symbol and download 3.6
    4. Click on the Installer and then go through installation.
    5. Finding the launcher is tricky.
      1. Open Finder
      2. Goto the Macintosh
      3. Goto User->Student->anaconda and launch
      4. Open Jupyter Notebook.
      5. I will add pictures.

 

Goals For Class 1:

  1. In Class
    1. Download syllabus
    2. Fill in survey
  2. Complete the Central Park Notebook
    1. You should now have Anaconda with Python version 3.9  installed.
    2. this is the ipython  notebook (pdf=time-series-first-analysis_v2) to download and complete during the first class.   I will bring printouts to class. It is on github and in a pdf.
    3. Read the text and copy the examples.  In the blank cells try to figure out the code!
    4.  If you need to download the notebook right click on raw and say save as.  Then you have the notebook. If you get a .txt file ending change it it .ipynb
    5. Today’s goal is to slowly work through the notebook.  Take your time.  I gave us plenty of time.
  3. For Homework
    1. sign up for code.org   We are going to do 2 courses
      1. The first course is Anna and Elsa hour of code with id GLVSKQ This is due next class.
        1. Take a screen shot of your certificate and then hand it in on courseworks under assignments.
      2. The second course is the 20 hour coding course with id WPCSGD https://studio.code.org/join/WPCSGD You do not have to do the unplugged sections. This is due 2/5/24.  You CANNOT join both classes at once.
      3. Joining these classes is quirky.  Use the links above.  You can also first sign in to code.org then go to https://studio.code.org/join then type in the two codes above.  Check with me and I will make sure I can see your progress.
    2. Watch Video for next class and take the Quiz.

 

Homework (DUE Monday January 22, 2024 ):

  1. The Frozen Hour of Code.
  2. Watch Next Video and Take Video Quiz!
  3. Make Sure you Install Anaconda
  4. Watch Growth Mindset on Home Page and take quiz.