[IPython-dev] Embedding IPython in C using Python/C API
Mon Feb 24 03:30:59 CST 2014
On Mon, Feb 24, 2014 at 2:39 AM, Filipe Saraiva <firstname.lastname@example.org> wrote:
> start the IPython terminal from a C code, and to use Python/C API to send
> the commands to processing in IPython
You might consider using Cython instead of writing against the C API
directly. You can write and expose a "cpp" class in Cython that handles
IPython interaction. Cython generates the C/C++ code to talk to Python as
well as a header for class to use from C++.
The big win is that you don't concern yourself with error handling and you
can write the code almost entirely in Python.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the IPython-dev