Version control on notebooks using pre-commit and Jupytext
Notebooks have a place and a time. They are suitable for sharing the insights of an exploratory data analysis, but not so convenient for collaborating with multiple people whilst having the notebook code under version control. Generally speaking notebooks do not promote good coding habits, for example because people tend to duplicate code by …
Initializing nested lists correctly
Flatten nested lists with a list comprehension
Wrong feature preprocessing is a source of train-test leakage
Masking with Boolean arrays in Numpy
Extracting Kobo EPUB Annotations
Two methods for exporting EPUB annotations (.annot)
Selecting user commands in style (Python)
Web scraping my own website in Python
See archives for more ...