如何正确获取iPython/Jupyter嵌入式Qt控制台?

3

将IPython Qt控制台嵌入PyQt应用程序涉及到这个问题,但最新的回答是来自2014年。 显然,事情已经发生了变化,因为以下代码会产生警告:

from IPython.qt.inprocess import QtInProcessKernelManager
from IPython.qt.console.rich_ipython_widget import RichIPythonWidget

提供:

local/lib/python2.7/site-packages/IPython/qt.py:13: ShimWarning: The `IPython.qt` package has been deprecated. You should import from qtconsole instead.

但是QtInProcessKernelManager只存在于IPython.qt.inprocess中。

在PyQt应用程序中嵌入IPython Qt控制台的非废弃方法是什么?

1个回答

1

网页内容由stack overflow 提供, 点击上面的
可以查看英文原文,
原文链接