Training materials and slides for courses on version control, clean code and documentation with practical examples and exercises in Python and R
A 4-day hands-on course teaching researchers how to write maintainable code, document effectively, and collaborate using Git and GitHub. Includes practical examples in Python and R, plus AI-assisted coding workflows with Claude Code and PyCharm.
Day 1 (3 hours): Git, Documentation & GitHub - Version control basics and collaborative workflows
Day 2 (6 hours): Clean Code & AI-Assisted Coding - Code quality principles, file structures, and hands-on AI tools session
Day 3 (3 hours): Advanced Tools & Publishing - PyCharm integration, Sphinx documentation, GitHub-Zenodo pipeline
Day 4 (3 hours): Bring Your Own Data - Apply learned concepts to your own research projects
See detailed program for full schedule.
Researchers and graduate students working with code (Python, R, or similar) who want to improve their software development practices. Basic programming experience required.
These materials were created by the University of Basel’s Research and Infrastructure Support RISE (rise@unibas.ch) between 2024 and 2026.
The file structure mirrors the outline of the course:
course/introcourse/gitcourse/docscourse/githubcourse/clean_code_in_contextcourse/ai_toolsThese materials are designed to be modular and adaptable:

This work is licensed under a Creative Commons Attribution 4.0 International License.