The entry level course 'Programming in Python', by the Utrecht Centre for Digital Humanities aims to teach the basics of the Python programming language. Special attention is given to best practices in coding, e.g.: writing clean code and documentation.
The course was first taught 15-16 November, 2021.
This repository contains all teaching materials, exercises, solutions and extra resources relevant to the course. All files are provided as IPython Notebooks.
It is also possible to run this course locally. This is possible by installing the following:
Steps:
- Install Python, Git and Visual Studio Code
- Open Visual Studio Code
- Choose "Source Control" on the left
- Choose "Clone Git Repository..."
- Use the URL of this repository (https://github.com/CentreForDigitalHumanities/programming-in-python.git)
- Decide on a convenient location for storing this repository e.g. create a folder "Sources" for storing this and all your future code!
- The repository will now be opened, choose "Yes, I trust the authors"
- Open the introduction lesson using the file explorer on the left
- Try to run the first code using the 'play icon' next to it
- It will recommend extensions: Python + Jupyter, let it install those
- You will see "Python environments..." when running code, just pick the recommended
- On Windows you might get a firewall notification, you can ignore/disallow it
- Installation of ipykernel package will be asked, let it install this
- It should just work now
Consult the official documentation if you want to deviate from this or need more information.