簡體   English   中英

Jupyter Notebook無法運行%qtconsole

[英]Jupyter Notebook failed to run %qtconsole

當我在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 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

有關詳細信息,您可以鍵入qtconsole?? 在Jupyter。

最上面的導入可能會給您以下消息:

/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)

但是根據文檔,這還可以。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM