About 50 results
Open links in new tab
  1. python - Making an executable in Cython - Stack Overflow

    What you want is the --embed flag for the Cython compiler. There isn't a ton of documentation on it, but this is what I was able to find. It does link to a simple working example. To compile the Cython …

  2. How to set up a simple hello-world example where a C function calls a ...

    Aug 3, 2025 · How to set up a simple hello-world example where a C function calls a Cython function calling a Python function? Asked 7 months ago Modified 7 months ago Viewed 2k times

  3. How do I wrap a C++ class with Cython? - Stack Overflow

    Apr 17, 2012 · Even Cython is generally for use with C, it can generate C++ code, too. When compiling, you add the --cplus flag. Now, creating a wrapper for the class is simple and not much different from …

  4. Build and Deliver Python modules using Cythonize in Setuptools

    Nov 22, 2019 · I am building a Python package after compilation using Cython and cythonize. Here is an example of how my setup.py looks like: from setuptools import setup, find_packages, Extension from …

  5. How can I manually compile Cython code that uses C++?

    Feb 6, 2015 · I have exactly copied the example code given in the Cython documentation for wrapping C++ classes. I can successfully build and import the rect.so extension using distutils and the …

  6. How can I iterate over rows in a Pandas DataFrame?

    I have a pandas dataframe, df: c1 c2 0 10 100 1 11 110 2 12 120 How do I iterate over the rows of this dataframe? For every row, I want to access its elements (values in cells) by the n...

  7. How to speed up pandas with cython (or numpy) - Stack Overflow

    I am trying to use Cython to speed up a Pandas DataFrame computation which is relatively simple: iterating over each row in the DataFrame, add that row to itself and to all remaining rows in the

  8. Cython inline function with numpy array as parameter

    Jul 5, 2014 · No this simple inc is just an example, really it is complicated function, that accepts array and some indices and does some computation using them. Is it possible to create some cython …

  9. python - Minimal example of wrapping C code with Cython- passing …

    Jul 8, 2014 · I am using: Mac OSX 10.8.5 brewed Python 2.7.5 Cython 0.20.2 This code is taken primarily from this video tutorial and git page, but unfortunately did not work for me 'out of the box'. …

  10. How to specify path to `.pxd` file in Cython - Stack Overflow

    Nov 18, 2017 · In the Cython docs, as long as you include the __init__.pxd in the directory where your .pxd is located, Cython will search your path for the definitions file when you use cimport in an …