PyCharm 2019.1 Help

Cython support


PyCharm provides initial Cython support out-of-the-box. PyCharm recognizes .pyx, .pxd, and .pxi files, and allows you to edit them.

However, if you want to compile and run .pyx files, make sure that the following prerequisites are met:

  • Cython is downloaded and installed on your computer.

  • C compiler is downloaded and installed on your computer.

Cython support

Cython files are marked with cython icon.

Cython support includes:

  1. Coding assistance:

  2. Code inspections. Almost all Python code inspections work for Cython.

  3. Refactorings.

  4. Advanced facilities to search through the source code, in particular, finding usages.

  5. Compiling Cython modules:

    • Compilation is done using external tools. The preferred build systems (Makefile,, and so on) should be configured as external tools.

    • C compiler should be downloaded and installed on your computer.

  6. Cython debugger. Refer to Cython documentation for details.

Last modified: 17 July 2019

See Also