Dev container setup guide
Use the course template repository below. It contains a dev container configuration for the course environment.
Template repository:
https://github.com/gperdrizet/datascience-devcontainer
1. Fork the template repository
- Open https://github.com/gperdrizet/datascience-devcontainer in your browser.
- Click Fork (top right).
- Accept the default fork name and settings.
- Click Create fork.
2. Mark your fork as a template
- In your forked repository, click Settings.
- Scroll down to Template repository.
- Check the box: Template repository.
- Click Save.
3. Create a new repository from your template fork
- Go back to your forked repository.
- Click Use this template.
- Choose Create a new repository.
- Set your repository name.
- Set visibility (Public or Private) based on class instructions.
- Click Create repository.
4. Clone the new repository locally
- In your new GitHub repository, click Code and copy the HTTPS URL.
- Open Terminal (macOS) or PowerShell (Windows).
- Move to your preferred parent folder.
- Run:
git clone https://github.com/YOUR_USERNAME/YOUR_NEW_REPO.git
cd YOUR_NEW_REPO
5. Open the repository in VS Code
From the cloned repository folder, run:
code .
6. Reopen the project in a dev container
- In VS Code, wait for the folder to load.
- If prompted, click Reopen in Container.
- If not prompted, open Command Palette (
Ctrl+Shift+Pon Windows,Cmd+Shift+Pon macOS). - Run: Dev Containers: Reopen in Container.
- Wait for the container build/start process to finish.
7. Verify you are inside the dev container
- Open a new terminal in VS Code.
- Run:
pwd
git status
python --version
You should see your repository path and working toolchain available inside the container.