Welcome to the repository for PPHA 30538: Data and Programming in Python.
Each lecture will have its own folder with the following materials:
- Quarto code:
.qmd
files that are the source of the lecture slides. - Supporting materials: Any images, data files, or external resources referenced in the slides.
- Slides: knitted PDF or HTML files that contain the slides used during the lecture.
Each problem set will also have its own folder.
There are two branches in this repository:
main
: This branch containsqmd
of slides without answers to the in-class exercises and do-pair-shares.after_lecture
: This branch contains the knitted slides with the answers included.
-
Before the lecture:
- Switch to the
main
branch. - Pull the latest version of the slides.
- Switch to the
-
After the lecture:
- Switch to the
after_lecture
branch. - Pull the version of the slides with answers.
- Switch to the
-
Ensure you are logged in to GitHub:
- Open GitHub Desktop.
- Navigate to
File > Options
(on Windows) orGitHub Desktop > Preferences
(on Mac). - Check the
Accounts
tab to make sure you're logged into your GitHub account.
-
Clone the repository:
- Open GitHub Desktop.
- Click on
File > Clone Repository
. - Enter the repository URL: https://github.com/uchicago-harris-dap/ppha30538_fall2024.
- Choose the location on your computer to save the repository and click
Clone
.
-
Switch between branches:
- In GitHub Desktop, go to the
Current Branch
menu at the top of the window. - Select either
main
orafter_lecture
from the dropdown list to switch branches.
- In GitHub Desktop, go to the
-
Check which branch you're on:
- The currently active branch is displayed at the top of the window in GitHub Desktop under the
Current Branch
menu.
- The currently active branch is displayed at the top of the window in GitHub Desktop under the
-
Pull the latest changes:
- Click
Fetch origin
(if updates are available, it will sayPull origin
). This will download the most recent changes for the branch you are on.
- Click
-
Ensure you are logged in to GitHub:
- In your browser, navigate to GitHub and log in to your account.
-
Clone the repository:
- Open your terminal.
- Run the following command to clone the repository:
git clone https://github.com/uchicago-harris-dap/ppha30538_fall2024
- Navigate into the cloned repository folder:
cd ppha30538_fall2024
-
Switch branches:
- To switch to the
main
branch:git checkout main
- To switch to the
after_lecture
branch:git checkout after_lecture
- To switch to the
-
Check the current branch:
- Run the following command to see which branch you're on:
git branch
- The active branch will have an asterisk (*) next to it.
- Run the following command to see which branch you're on:
-
Pull the latest changes:
- To fetch and pull the latest changes from the current branch:
git pull
- To fetch and pull the latest changes from the current branch:
Feel free to reach out via EdDiscussion if you have any questions or run into any issues. Happy coding!