with VS Code and LLMs
Choose based on what you have:
Where you run Python commands:
Recommendation: Use whatever came with your OS. PowerShell on Windows.
Reference extensions for Python development:
brew install python3apt install python3Open terminal and run:
These slides as well as two datasets are in a public repo called ‘pyws’ on my GitHub Account ‘jobschepens’. You can clone these files using the command line:
Before cloning, make sure git is installed on your system. Open your terminal and navigate to the directory where you want to store the repository (e.g., C:\GitHub on Windows or ~/projects on macOS/Linux). You can also use GitHub Desktop if you prefer a graphical interface.
For today’s workflow, you can work directly in the cloned repository: create new subfolders for your analyses, then commit and push changes to the main branch. For collaborative or more advanced workflows, consider forking the repository on GitHub, cloning your fork, creating a feature branch for your work, committing and pushing your changes, and then opening a Pull Request to merge your work into the original repository. This approach is recommended for larger teams or when contributing to shared projects.
Isolate project dependencies (venv recommended; conda/poetry/pipenv are alternatives):
Installs: pandas (data), numpy (computing), matplotlib (visualization), jupyter (notebooks). Note that these packages are relatively large (often 100–200 MB total for all dependencies).
Open VS Code, open pyws folder
Terminal: `Ctrl+`` (backtick) → Activate venv
Run verification:
Pick one or more (free tiers available):
| Provider | Note | Cost |
|---|---|---|
| GWDG CoCo AI | Recommended for academic use | Free |
| OpenAI/Claude/Gemini | “Top tier” models | Monthly payments |
| OpenRouter | Many models, unified API | Pay-per-use |
| GitHub Copilot Pro | Limited top-tier models | Free with educational account |
| Ollama | Local models, no internet | Free |
| Groq | Fast inference | Free tier available |
CoCo AI: Code completion service via Chat AI on GWDG’s AcademicCloud
Popular options for different workflows:
"Write a Python function to read a CSV file"Advanced: Model Context Protocol for complex workflows. Not required for basic setup.
Popular cloud-based alternatives to local setup:
| Platform | Best for | Setup | Limits | Use in Workshop |
|---|---|---|---|---|
| Google Colab | Quick prototyping | Sign in with Google | Resets after 12h | Good for demos |
| Binder | Sharing reproducible environments | GitHub repo → mybinder.org | Public repo only | Good for homework |
| GitHub Codespaces | Full IDE in browser | Click “Code” on GitHub | 60h/month free | Best backup |
Core toolkit (CLI): pip, git, gcloud, docker, poetry, nox
| Aspect | CLI Approach | VS Code Extension Approach |
|---|---|---|
| Reproducibility | ✅ Best (scripts/config in version control) | Good (.vscode/ settings + extensions list) |
| Automation | ✅ Best (native scripting in bash/PowerShell) | Limited (requires extension APIs) |
| Accessibility | Works everywhere (SSH, containers, servers) | VS Code only |
| Discoverability | Steeper learning curve | Visual feedback; easier exploration |
| Team Collaboration | ✅ Best (commands are portable, language-agnostic) | Good (share .vscode/settings.json) |
# 1. Set up reproducible environment (in version control)
python -m venv .venv
source .venv/bin/activate
pip install -r requirements.txt
# 2. Run batch processing / CI validation
cline-agent --task "refactor test suite" --approve-all
# 3. Final validation & deployment
nox -s test
nox -s lint
gcloud deploy app.yaml