From 6a41fb5fc20af784e4b1ac47332490119310abe2 Mon Sep 17 00:00:00 2001 From: "Ashwin V. Mohanan" <9155111+ashwinvis@users.noreply.github.com> Date: Mon, 9 Nov 2026 15:18:39 +0100 Subject: [PATCH 1/2] Add cython and c-compiler to environment.yml As mentioned in https://aaltoscicomp.github.io/python-for-scicomp/cython/ --- software/environment.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/software/environment.yml b/software/environment.yml index e033169f..2fd799e0 100644 --- a/software/environment.yml +++ b/software/environment.yml @@ -26,4 +26,5 @@ dependencies: - netcdf4 - yfinance - pythia-datasets - + - cython + - c-compiler From 998b41fa387f5a6467a6125370e8710bea80b0c3 Mon Sep 17 00:00:00 2001 From: "Ashwin V. Mohanan" Date: Tue, 17 Nov 2026 21:19:35 +0100 Subject: [PATCH 2/2] Update note on Cython and c-compiler --- content/cython.rst | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) diff --git a/content/cython.rst b/content/cython.rst index 1ea6d975..b9def46e 100644 --- a/content/cython.rst +++ b/content/cython.rst @@ -19,14 +19,19 @@ Extending Python with Cython - Learn to use Numpy arrays in Cython code and implement common performance enhancements for Cythonized arrays. -.. callout:: +.. note:: Using Cython requires that you have a working environment for compiling - C code. This goes beyond the software requirements for this course, so the - teaching will be given in form of demonstrations and no exercises. - You may still follow along with the code examples but you will need to have - Cython and a working C compiler available. You can install both to your - Conda environment with ``conda install -c conda-forge cython c-compiler``. + C code. **This is included in the software requirements for this course**, + but the teaching will be given in form of demonstrations and no exercises. + You may still type-along with the code examples. + + .. admonition:: Warning: potential reproducibility bugs ahead + :class: error + + Unexpected issues may still happen because a conda environment can still + interact with your operating system and various variables in your shell. + In which case try to focus on the lectures, and not on the bugs. Python and performance