2017-07-07 924 views
0

當我在Windows上安裝10在Ubuntu的bash鍵入jupyter notebook,打開一個文件,它看起來像這樣開始jupyter筆記本10

Jupyter1NotebookNrequirespJavaScript.g one-time-token-authenticated connection from 127.0.0.1 
Please enable it to proceed. 
Jupyter Notebook 
Logout 

    • Files 
    • Running 
    • Clusters 

Select items to perform actions on them. 
Duplicate Rename Move Download Shutdown View Edit 
[     ] Upload 
New 

    • Notebook: 
    • 
    • Other: 
    • Text File 
    • Folder 
    • Terminal 

[ ] Toggle Dropdown 

    • Folders 
    • All Notebooks 
    • Running 
    • Files 

    • 

Last Modified 
Name 
Currently running Jupyter processes 
Terminals 
There are no terminals running. 
Notebooks 
There are no notebooks running. 
Clusters tab is now provided by IPython parallel. See IPython parallel for installation details. 

殼裏面我試着鍵入jupyter notebook --no_browser的筆記本電腦啓動,但它始終停止重新連接。此外,答案here沒有幫助。

回答

1

會發生什麼情況是,Windows上的Ubuntu,就像普通的Ubuntu安裝jupyter一樣,會嘗試打開默認瀏覽器,只有在「Ubuntu on Windows」的情況下,才能打開實際的默認瀏覽器的Windows系統,而是打開「w3m」。因此,您需要通過點擊Q - > y來退出「w3m」。然後,你應該看到啓動時「jupyter筆記本」,你會期望輸出:

[C 12:30:49.819 NotebookApp] 

Copy/paste this URL into your browser when you connect for the first time, 
to login with a token: 
    http://localhost:8888/?token=846b1a3b51e3c3adb2cb756a887f178975de1e11c90ada10 

從那裏出來,這個程序是完全一樣正常。將提供的帶有標記的URL複製到您的實際Windows瀏覽器中,然後一併編碼。