Jupyter notebooks of the DataHow teaching course. Every notebook can be run in Google Colab (nothing to install) or locally in a Python environment managed with uv.
Part 1
00_Process_Introduction– the in silico fed-batch cell culture simulator and the design of experiments used in the course01_PCA– principal component analysis, OWU and BWU unfolding02_PLS– linear regression, model diagnostics and partial least squares03_GP– Gaussian processes from conditional probabilities and kernels
Part 2
04_Hybrid_Model– hybrid models combining mass balances with Gaussian processes05_Bayesian_Optimization– acquisition functions and Bayesian optimization06_Ensembles– model variation, ensembles and bootstrap prediction intervals07_TransferLearning– transfer learning between two similar processes
The notebooks are in scripts/. PDF exports of the executed notebooks are in pdf/.
- Open https://colab.research.google.com/ and choose File > Open notebook (Ctrl/Cmd + O).
- Select the GitHub tab, enter
https://github.com/DataHow/analytics-course-scriptsand search. - Keep the
mainbranch and open a notebook fromscripts/, starting withscripts/00_Process_Introduction.ipynb. - Run the first cell. It clones this repository into the Colab session and installs the extra packages.
-
Install uv: https://docs.astral.sh/uv/getting-started/installation/
-
Clone the repository and create the environment (Python 3.12 is downloaded by uv if needed):
git clone https://github.com/DataHow/analytics-course-scripts.git cd analytics-course-scripts uv sync -
Start JupyterLab and open a notebook from
scripts/:uv run jupyter lab scripts
In VS Code, open the folder and select the interpreter in
.venvas the notebook kernel.
uv sync --group export
uv run playwright install chromium
uv run python tools/export_pdf.pyPlotly figures are rendered to images with kaleido, which needs a Chrome or Chromium browser installed on the machine. The PDFs are written to pdf/.
scripts/– the course notebooksscripts/modules/– the process simulator and plotting helpers used by the notebooksscripts/datasets/– pre-generated train and test datasets (owu*.csv) and the food consumption datasetscripts/generated/– datasets generated while running the notebooks (not versioned)interactions/– interactive widget versions of the lectures, made for Google Colabtools/export_pdf.py– PDF export script