Daily Setup
Setup Checklist
Copy the episode files into workspace dir
This example shows copying ch1ep1 files. Please change to path to match your daily episode (for example: ch1/ep2, ch1/ep3, etc...)
mkdir -p workspace/ch1/ep1
cp -r deb/ch1/ep1/* workspace/ch1/ep1
Navigate to your episode
Please change to path to match your daily episode (for example: workspace/ch1/ep2, workspace/ch1/ep3, ...)
cd workspace/ch1/ep1
Create a virtual environment:
python3.7 -m venv venv
Activate it:
source venv/bin/activate
Install the required packages:
pip install -r requirements.txt
Pull down any changes from the remote repository:
git fetch upstream
git checkout main
git merge upstream/main
Resolve merge conflicts
If you encounter a merge conflict error, run this command and repeat the commands above:
git reset --hard upstream main
Merge conflicts happen when you work directly on files inside deb/
folder. Be sure to copy daily episodes to workspace/
.
Open the episode in VS Code:
code .
Select your Python interpreter:
- From within VS Code :
Ctrl + Shift + p
- A search bar will open at the top. Type 'python', then choose the option 'Python: Select Interpreter'
- From the dropdown, choose the path to your venv