Python Jupyter笔记本无法运行%qtconsole
在jupyter笔记本上运行%qtconsole时(我使用Windows power-shell0运行jupyter笔记本 错误给出Python Jupyter笔记本无法运行%qtconsole,python,Python,在jupyter笔记本上运行%qtconsole时(我使用Windows power-shell0运行jupyter笔记本 错误给出 c:\users\mohit\appdata\local\enthought\canopy\user\lib\site- packages\IPython\utils\traitlets.py:5: UserWarning: IPython.utils.traitlets has moved to a top-level traitlets packa
c:\users\mohit\appdata\local\enthought\canopy\user\lib\site-
packages\IPython\utils\traitlets.py:5:
UserWarning: IPython.utils.traitlets has moved to a top-level traitlets package.
warn("IPython.utils.traitlets has moved to a top-level traitlets package.")
c:\users\mohit\appdata\local\enthought\canopy\user\lib\site-packages\IPython\utils\pickleutil.py:3:
UserWarning: IPython.utils.pickleutil has moved to ipykernel.pickleutil
warn("IPython.utils.pickleutil has moved to ipykernel.pickleutil")
c:\users\mohit\appdata\local\enthought\canopy\user\lib\site-packages\IPython\utils\jsonutil.py:3:
UserWarning: IPython.utils.jsonutil has moved to jupyter_client.jsonutil
warn("IPython.utils.jsonutil has moved to jupyter_client.jsonutil")
也许你应该试试这个:
try:
from IPython.parallel import bind_kernel
except ImportError:
# technically possible, because parallel has higher pyzmq min-version
pass
else:
bind_kernel()
然后,在下一个单元格中:
%qtconsole
有关详细信息,您可以在Jupyter中键入qtconsole??
顶部的导入可能会显示以下消息:
/Users/reblochonmasque/anaconda3/lib/python3.4/site-packages/IPython/parallel.py:13: ShimWarning: The `IPython.parallel` package has been deprecated. You should import from ipyparallel instead.
"You should import from ipyparallel instead.", ShimWarning)
但根据文档,这没关系。真的吗?它在这里工作……您运行的是最新版本吗?qtconsole告诉您什么?在运行代码,然后运行%qtconsole后,它什么也不显示,什么都没有发生。没有qtconsole,没有错误。在运行qtconsole后,它在我的浏览器底部显示一个栏,告诉我源代码的详细信息。我已经使用pip命令更新了ipython、qtconsole和jupyter,但仍然存在问题。是的,它不应该显示任何内容,它将qtconsole链接到笔记本;您现在可以使用它了。:【jupyter项目有好的文档,我建议您快速查看:)但qtconsole没有打开。