(簡略化された)経由で組み込みのipythonコンソールを実行しています:
# the code uses PyQt4, this makes sure it is initialized properly
import IPython.lib.inputhook
qapp=IPython.lib.inputhook.enable_gui(gui='qt4')
# create the embedded terminal
from IPython.frontend.terminal.embed import InteractiveShellEmbed
ipshell=InteractiveShellEmbed()
ipshell()
埋め込みターミナル シェルの代わりにipython のQt コンソールを実行したい場合、このコードはどのようになりますか? あらゆるところで使用する例がありますがipython qtconsole
、それを自分のコードに統合する方法はありません。