Cython Support
This feature is supported in the Professional edition only.
Prerequisites
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 icon.
Cython support includes:
- Coding assistance:
- Error and syntax highlighting.
- Code completion for keywords, fields of structs, and attributes of extension types.
- Code formatting and folding.
- Ability to create line comments (Ctrl+Slash).
- Cython syntax for typed memoryviews.
- Code inspections. Almost all Python code inspections work for Cython.
- Refactorings.
- Numerous ways to navigate through the source code, among them:
- Navigating with Structure View.
- (Ctrl+B).
- (Ctrl+Alt+B) from overridden method / subclassed class.
- Advanced facilities to search through the source code, in particular, finding usages.
- Compiling Cython modules:
- Compilation is done using external tools. The preferred build systems (
Makefile
,setup.py
, etc.) should be configured as external tools. - C compiler should be downloaded and installed on your computer.
- Compilation is done using external tools. The preferred build systems (
- Cython debugger. Refer to Cython documentation for details.
Last modified: 26 October 2017