Objective: Setup the tools that we'll be using this semester in Stat 386.
Instructions: Follow the direction below to get Git, GitHub, uv, and VS Code up and running.
Submission: Add a file called complete.txt (this can be an empty file) to the repository. Commit and push to github.
-
Download and install git onto your computer
- Verify that the installation was successful:
- On a mac: Open the terminal and type
git --version. It should returngit version X.XX.XX(with the version number) - On a PC: Verify that you have "git bash". Open "git bash" and type
git --versionto verify your version number.
- On a mac: Open the terminal and type
- Verify that the installation was successful:
-
Configure git
- Configure git on your computer with your name, email, and text editor of choice.
- git config --global user.name "first last"
- git config --global user.email "your_email_here"
- Configure git on your computer with your name, email, and text editor of choice.
- Make sure you have Python 3.11 installed. You can download it from python.org.
- Install uv
curl -LsSf https://astral.sh/uv/install.sh | sh - Create a new folder for this project (e.g., stat386-lab1) and initialize a virtual environment:
- In the terminal (Mac) or git bash (Windows) type
mkdir stat386-lab1 - Change directories
cd stat386-lab1 - Create a new virtual environment
uv venv - Activate the environment:
- Linux / Mac
source .venv/bin/activate - Windows
.venv\Scripts\activate
- Linux / Mac
- In the terminal (Mac) or git bash (Windows) type
- Download and install VS Code
- Install the following extensions. To install an extension, click on the "Extensions" icon on the left most toolbar, search for the extension name in the search bar, and click the "Install" button.
- GitHub Pull Requests and Issues
- Python (by Microsoft)
- Jupyter (by Microsoft)
- Sign into GitHub through VS Code by clicking on the "GitHub" icon on the left most toolbar and clicking "Sign in". (Note: You will first need to sign up for a GitHub account if you don't have one already.)
- Download and install Quarto from the official website
- Verify installation
- Open a terminal or Git Bash and type
quarto check - You should see a summary confirming that Quarto is installed and integrated with VS Code and Jupyter
- Open a terminal or Git Bash and type
- (Optional but recommended) Install the Quarto VS Code Extension
- Search for "Quarto" in the VS Code Extensions tab and click "install"
- Create a Github account (if you haven't already done so)
- Setup your Github profile:
- Add a picture
- Add your name
- Add a brief bio
- Create a profile README
- Grant Github access to your computer:
In order for you to be able "push" changes from your computer to Github, your Github needs to recognize your computer as having permission to do so. You will need to use ONE of the following methods:
- OAuth token
- SSH keys