2015-09-05 290 views
0

(我使用的是Windows開機shell0跑jupyter筆記本Jupyter筆記本失敗當我jupyter筆記本運行%qtconsole跑%qtconsole

錯誤給

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

回答

0

也許你應該試試這個:

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) 

但根據文檔,它是好的。

+0

它給你的代碼有同樣的錯誤。 –

+0

真的嗎?它在這裏工作...你正在運行最新版本嗎? qtconsole是什麼?告訴你? –

+0

運行代碼並運行%qtconsole之後,它什麼都不顯示,沒有任何反應。沒有qtconsole,沒有錯誤。運行qtconsole後,它會在瀏覽器底部顯示一個欄,它告訴我源代碼的詳細信息。 –