Bit late I know, but I recommend the code.InteractiveConsole class: http://docs.python.org/py3k/library/code.html#code.InteractiveConsole
More Related Contents:
- Using both Python 2.x and Python 3.x in IPython Notebook
- Purpose of “%matplotlib inline”
- Importing an ipynb file from another ipynb file?
- Automatically import modules when entering the python or ipython interpreter
- “ImportError: No module named” when trying to run Python script
- Progress indicator during pandas operations
- Example of the right way to use QThread in PyQt?
- Coloring Cells in Pandas
- Embedding IPython Qt console in a PyQt application
- Customising code of Qt designer widget?
- Login dialog PyQt
- Lifetime of object in lambda connected to pyqtSignal
- PySide / PyQt detect if user trying to close window
- Print out Python console output to Qtextedit
- R and Python in one Jupyter notebook
- IPython: redirecting output of a Python script to a file (like bash >)
- Programmatically get current IPython notebook cell output?
- How to pass arguments to callback functions in PyQt
- cannot override sys.excepthook
- PyQt: How to set Combobox Items be Checkable?
- How to get ipywidgets working in Jupyter Lab?
- How to pickle or store Jupyter (IPython) notebook session for later
- Using Windows 7 taskbar features in PyQt
- How to determine who emitted the signal?
- PyQt: Why does new window close immediately after opening it [duplicate]
- Run command with PyQt5 and getting the stdout and stderr
- How do I use vi keys in ipython under *nix?
- Could not find or load the Qt platform plugin “xcb”
- Converting .py to .ui file [duplicate]
- What does In [*] in IPython Notebook mean and how to turn it off? [duplicate]