Skip to content


Cython is an optimising static compiler for both the Python programming language and the extended Cython programming language.

Cython is both a programming language and static compiler. As a programming language, it is designed to leverage the speed and power of C while retaining the simplicity and ease of Python. The language is targeted towards writing extensions for the Python language, and it contains the ability to interface with C-language functions.

The compiler allows these extensions to be pre-compiled before use which can significantly improve the performance of Python programs.

Using Cython on RCC Resources#

Cython needs to be installed by the user in a virtual environment, or through our pre-installed Anaconda package. For detailed usage examples and tutorials, refer to the official Cython documentation.

Regardless of which library loading method you use, you can test that the Cython module was successfully loaded by adding the following line to your code:

import cython