[IPython-dev] Embedding IPython in C using Python/C API

Marmaduke Woodman mmwoodman@gmail....
Mon Feb 24 03:30:59 CST 2014


On Mon, Feb 24, 2014 at 2:39 AM, Filipe Saraiva <filipe@kde.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...
URL: http://mail.scipy.org/pipermail/ipython-dev/attachments/20140224/40fa1f1c/attachment.html 


More information about the IPython-dev mailing list