Do the Notebook Assignments

During the class, I will be assigning exercises that are embedded within a Jupyter notebook.  Here are the instructions for completing these assignments.

Running the Jupyter Notebook

To startup your notebook, cd to the directory containing the notebook you want to open.  For instance, to do the first reading I would change directories to ~/DataScience16/ThinkStats2.  Once you are in the correct directory, you can startup the notebook by running:

$ jupyter notebook notebookname.ipynb

For the first reading it would look like:

$ jupyter notebook chap01ex.ipynb

Complete the Exercises

Interspersed in the notebook will be questions that you will answer by filling in the notebook cells below.  For instance, here is a sample question from Chapter 1 of ThinkStats2.

Once you have filled out the answer, it might look like this.

There will also be some designated cells to put your questions regarding the assignment.  These will look like this.

It is important that when you fill out your answers to these questions, that you don't substantially change the question text.  The reason for this is that I will be running automated scripts to parse your notebook and extract answers.

When providing an answer you may use as many cells as you want.  The script that processes the data will use all cells from the question heading until the next question heading as your answer.

Turn in Your Assignment

Run Your Notebook One Last Time

Before turning in your notebook, make sure to run all the cells.  This will allow me to see the output that your notebook generated.  To do this use the Cell menu and select "Run All".

Push to Github

Make sure you add the file, commit, and push your notebook.   A good sanity check to make sure you have done this properly is to navigate to the notebook on Github and make sure that it looks correct (Github will render the ipython notebook in the browser).

Submit a Link to Your Assignment

There will always be a Google survey that allows you to specify a link to your notebook.  In order to get the link, navigate to the notebook on Github.  Next, click the raw button (shown below).

Next, highlight the URL from your browser so you can paste it into the Google form (in the example below, you would paste the string beginning with https://raw.githubusercontent.com/paulruvolo/DataScience16/master/ThinkStats2/chap01soln.ipynb).

Google Forms for Turning in your Notebooks

Chapter 1