I am working on a Python IDE to be used by kids, where I have two panes: one for editing the source code, say 'a.py'; one for showing the output of 'python a.py' if one run it from a terminal. However I expect the IDE to work in system where no python installation at all. How can I achieve this?
The closest thing I found is code.InteractiveInterpreter(), but I hope there is something easier like 'eval('a.py'). Any suggestions?