Scientific Programming in Python (2024)
Note
The course materials Scientific Programming in Python (2024), with exception of the YouTube videos, are licensed under the Creative Commons Attribution-ShareAlike 4.0 International License.
0 – Setting up the working environment
Installing Conda and JupyterLab on Linux:
tutorial slides
Installing Conda and JupyterLab on Windows:
tutorial slides
First steps with JupyterLab:
tutorial slides
1 – Python basics
About Python (a 3 minutes motivation): video tutorial,
tutorial slides
Basic (scalar) data types: video tutorial,
tutorial slides
,cheat sheet
Control structures: video tutorial,
tutorial slides
,cheat sheet
Exercises:
exercises
2 – Tuples and lists
Tuples and lists: video tutorial,
tutorial slides
,cheat sheet
Functions in a nutshell: video tutorial,
tutorial slides
,cheat sheet
Exercises:
exercises
3 – Sets and dictionaries
Sets and dictionaries: video tutorial,
tutorial slides
,cheat sheet
String methods (a minimal selection) video tutorial,
tutorial slides
,cheat sheet
Exercises:
exercises
4 – Functions and arrays
Functions: video tutorial,
tutorial slides
,cheat sheet
Arrays video tutorial,
tutorial slides
,cheat sheet
Exercises:
exercises
5 – File I/O and plotting
File I/O: video tutorial,
tutorial slides
,cheat sheet
Plotting video tutorial,
tutorial slides
,cheat sheet
Exercises:
exercises
,exercises data
6 – Git basics and Python modules
Setting up Git and Visual Studio Code:
tutorial slides
Git basics: video tutorial,
tutorial slides
,cheat sheet
Python Modules: video tutorial,
tutorial slides
Exercises:
exercises
,project files (Linux/MacOS)
,project files (Windows)
7 – Further Git features
Further Git features: video tutorial
tutorial slides
,cheat sheet
Exercises:
exercises
8 – Unit testing and code quality analysis
Unit testing: video tutorial
tutorial slides
,cheat sheet
Code quality analysis: video tutorial
tutorial slides
Exercises:
exercises
9 – Exceptions and API-documentation
Exceptions: video tutorial
tutorial slides
,cheat sheet
API-documentation via Sphinx: video tutorial
tutorial slides
Exercises:
exercises
10 – Parallel and collaborative development with Git
Git branches: video tutorial
tutorial slides
Collaborative development via Git: video tutorial
tutorial slides
Remotely hosted Git-repositories video tutorial
tutorial slides
Cheat sheet
Complete Git cheat sheet
Exercises:
exercises
11 – Command line arguments, packaging and distribution
Command line arguments: video tutorial
tutorial slides
Python packages: video tutorial
tutorial slides
Packaging and distribution video tutorial
tutorial slides
Exercises:
exercises