Lab 01
August 25, 2023
Labs are in-class exercises intended to get practice with coding or analysis workflows.
Once you have created your account, navigate to the GitHub repository for the assignment.
Click the green “Code” button, and copy the URL by clicking on the clipboard icon.
Open Folders, Not Files
Opening a folder is recommended because it gives you access to a wider set of tools and the version control interface.
Jupyter notebooks consist of two cell types:
You need to pick a kernel to tell Jupyter what language and version to use for code evaluation.
After pressing the kernel selection button (right):
Click on “+Code” or “+Markdown” and the new cell should appear.
“Committing” is the git term for locking in a particular repository state.
You will see the icon on the right on the left-most (vertical) bar. This is the “Source Control” icon.
Click this and the “Explorer” panel will change to the “Source Control” panel.
Click the “+” button next to any files you want to commit, add a message, and click “Commit”.
“Pushing” syncs committed changes from the local repository to the remote repository on GitHub.
Once you’ve made commits, you will see the following on the bottom of your VS Code window:
Click the button and VS Code will “pull” remote changes and “push” local changes.
You’ll need to export your notebook to a PDF to submit to Gradescope.
You should see the following menu bar at the top of the VS Code window:
Monday: Modeling Systems
Wednesday/Friday: Examples of Systems Models