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

Marmaduke Woodman mmwoodman at gmail.com
Mon Feb 24 04:30:59 EST 2014

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

More information about the IPython-dev mailing list