I am developing a specific IDE for python in C++, using Python C API. I would like embed a python terminal in it.
I tried using PyRun_SimpleString, its works but it don't behave like a python terminal (for example, 1 + 1 don't show the answer). I am trying use PyRun_InteractiveOne, but I don't know how I can get the output of this method to C++ side.
Anyone have any tip about how can I get this values in C++ side? Is there some module or code for python script behave as interactive mode?
Thank you,