Reading Journal

Submitting Completed Readings

Once you have completed your reading journal (not just the reading exercises, but also your notes as well as any comments you want to give to us), you can turn in your work by running the following commands. First, make sure you have saved the notebook by clicking “Save and checkpoint” in the browser window. Then, run the following. (Change “reading journal 1” to the day that you have completed.)

$ cd ReadingJournal
$ git add reading-journal-01.ipynb
$ git commit -m "Completed reading journal 1"
$ git push origin master

You will then be prompted to enter your GitHub username and password. Assuming you followed all of the instructions outlined above, that’s it!

Downloading Future Notebooks

We will continue adding reading notebooks to the original upstream class repository. These will not show up in your forked copy unless you explicitly pull them in.

When the instructors have uploaded new reading assignments, you can pull them into your repository.

One Time Setup: Add Upstream Remote

On your laptop, you should have a cloned copy of the ReadingJournal repository from your GitHub account. You can verify this by checking its remote repositories:

$ cd ReadingJournal
$ git remote -v

origin	https://github.com/sd18fall/ReadingJournal-myname.git (fetch)
origin	https://github.com/sd18fall/ReadingJournal-myname.git (push)

(Depending on how you set up your reading journal, you may see https://github.com/sd18fall/ReadingJournal-myname.git instead of git@github.com://sd18fall/ReadingJournal-myname.git. Either is acceptable.)

We want to keep origin (the cloned copy in your GitHub account) for you to push completed work to, but we also want to add the original upstream class master repository for you to pull new assignments from. We can add this additional remote by running:

$ git remote add upstream https://github.com/sd18fall/ReadingJournal.git

If you run git remote -v now, you should see both origin and upstream listed.

Pull New Notebooks from Upstream

Each time you want to grab the latest assignments, you should first first make sure all your recent work is committed. This is just to form good habits - each new reading journal assignment will be its own .ipynb file, so there should not be any conflicts. Then:

  1. In a terminal window in your ReadingJournal directory, run the following:
      $ git pull upstream master
    

    This should pull in the latest assignment notebook. It may trigger a merge process between the work you’ve previously done and the new notebook from the upstream repo. This will launch an editor with a merge message; save it to continue.

  2. Run jupyter notebook.
  3. You will see a list of files that includes the new notebook file. Click on the new notebook file to open and edit it.
  4. When you are done editing the notebook, click the floppy disk icon , or select the “File > Save and Checkpoint” menu item, to save your work to disk.
  5. Follow the usual instructions to submit your work (add, commit, push to your origin repository).

Checking that you’ve submitted your homework

Here’s how you can check your that you’ve submitted your Reading Journal: