This repository is for a Python workshop titled Speed up your Python 30x! that was held on Feb 1st, 2019 at McGill University. This was part of the Workshop Series on Atmospheric Data Science. The presentation is uploaded as 'Python30x.pdf'.
This workshop gives a brief tour of how to speed up Python code by using the C language.
- Using packages that have efficient C bindings, such as:
- numpy
- netCDF4
- scipy
- Compile C code into a binary that can be called by your Python script.
- Compile C code into a shared library, whose functions can be called from Python by use of the ctypes module.