Style Python code in line with PEP guidelines
Channel: Hydro-Morphodynamics
Date: 2022-08-24

Style your Python code to ease collaboration based on PEP conventions and materials provided at https://hydro-informatics.com/jupyter/pystyle.html

The jupyter notebooks can be git-cloned (or zip-downloaded) from the course repository: https://github.com/hydro-informatics/jupyter-python-course.git

This tutorial uses the jupyter notebook named b08-pystyle.ipynb in the course repository.

Lecturer: Sebastian Schwindt


-- Contents of this video --
00:01:14 - About Python Enhancement Proposals (PEP)
00:04:26 - PEP 8 style applied to code layout
00:07:22 - Formula and operator line breaks
00:12:35 - Where to place package imports
00:14:37 - Inline comments
00:15:57 - Docstrings
00:18:51 - Variable name styles