Overview

This module will give you some practice and instruction with working in Jupyter Notebooks and Python.

Review

  • Before starting, make sure you’ve completed all of the following steps from the tutorial 💻 Getting Up and Running With GitHub:
    • Created a GitHub account
    • Installed GitHub Desktop
    • Forked the course repository and renamed it to include your last name (ex. blevins-sp25-data-materials)
    • Cloned your fork to your local computer

As a reminder, here is the GitHub workflow:

Image

Check For Updates

⚠️ ⚠️ ⚠️ Before starting any new work in this class, you always want to check for any updates from your instructor’s sp25-data-materials repository.

  • Open GitHub Desktop and select your course repository
  • Make sure it says: Current Branch: main (ie. you’re on the main branch)
  • Click Fetch origin to check for any changes
  • Go to Branch → Merge into current branch → select upstream/main and click Create a merge commit if there are updates
  • Click Pull origin if it’s available (if not, you’re up to date!)
  • Click Push origin to sync everything up

Part 1: Jupyter Notebooks

  • Open Anaconda Navigator
  • Open Jupyter Labs
  • Within Jupyter Labs, navigate to your local copy of your GitHub repository inside working-with-data folder - ie. blevins-sp25-data-material
  • Look inside week-02 and make sure you have the following files:
    • jupyter-notebooks-intro.ipynb
    • python-variables.ipynb
  • Duplicate (ie. make a copy of) of jupyter-notebooks-intro.ipynb (right-click Duplicate) then rename your notebok
  • Follow along with your instructor as you work through the notebook

Always remember to duplicate the .ipynb file and save your work as you go!

Part 2: Python

  • Within Jupyter Labs, look inside week-02 and open python-variables.ipynb
  • Follow along with your instructor as you work through the notebook

Always remember to duplicate the .ipynb file and save your work as you go!

Sync Your Local Repository and Your Forked Repository

⚠️ ⚠️ ⚠️ To keep your local copy and your forked repository on GitHub.com up to date, it’s always a good idea to complete the following whenever you have completed work (or if you want to save your progress.)

  • Open GitHub Desktop
  • You should see “Changes (some number)” on the left side, with a list of files that have been changed or added
  • At the bottom left of GitHub Desktop, write a brief “Summary” of what you did (ex. “Added practice notes file”)
  • Click “Commit to main”
  • Click “Push origin” to sync these changes to your GitHub fork