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.

5 thoughts on “Class 1. Introduction and Central Park

  1. This notebook was easy enough to follow for the first day which was good because it wasn’t intimidating. I do wish, however, that you had taken the first day to give us a really good overview of programming, python, and some of the most important and most common terms, like index, dataframe, array, etc. Though you explain these terms when we get to them in the notebooks, it’s easy to gloss over terms and it would be nice to have a lecture-style class on the basics of python so that we know what to look out for, and maybe show us some examples of the final projects so that we know exactly the direction that we’ll be going in.

  2. First, I think the codeacademy and code.org homework was incredibly helpful to “think like a program”. I know some people think it is a bit tedious, but it really helps ease us into python.

    Second, you make a note in the beginning that we should use markdown to comment our code. I think it would be better to introduce “## or #” commenting at this point since switching from code back to markdown back to code etc. might cause unnecessary errors.

    Third, possibly email the class beforehand, instructing them to download anaconda the day before? I remember it was helpful to have you in the room answering questions real-time, but it could be our mini introduction into CS problem solving.

  3. The introduction to the class was interesting, but I also felt like we were kinda thrown right into it. instead of starting us off downloading anaconda, and starting the complicated lesson etc, I think it would be helpful to give us a brief overview of what python is, and what its used for. I think you should start off by telling us what it means when we import all of the things we do in the first block of code (matplotlib, numpy, etc.)

    I think you should give us some major syntax characteristics pertaining to the lessons (for example, ax. vs plt., brackets vs. parenthesis, list vs. string), so maybe not all at once, but when we learn the lesson to go over the syntax.

    I think you should give a disclaimer at the beginning about how this course will have a lot of the information for the homework in the notebooks we do in class, but we will also have to do research online for additional help. (I spent a lot of my time on stackoverflow and github this semester)

    Nevertheless, I do believe that because you didn’t tell us all of this information in the beginning that it made me work harder to understand the major concepts behind python. No matter how many times someone told me about lists and strings I didn’t truly understand it until I figured it out myself, so in that sense I really liked the way it was taught.

    I agree with the comment above about the homeworks ^ , but I also think we should have all of them posted on edblogs or courseworks- it was a struggle to find where the homeworks were posted between the two websites until I realized they were updated more frequently on edblogs.

    I also think that slack should be a lot more emphasized next semester. There were so many times I spent hours trying to solve an error, that if we had a group chat (that people actually used) I would have figured it out a lot easier by posting my code and the error.

    Overall such a valuable course!! I know I will continue python in the future. Its taught me so much about logical thinking and is actually really fun( yet extremely frustrating).

Leave a Reply