当我在Windows 10上安装的ubuntu bash中键入jupyter notebook
时,会在shell中打开一个文件,如下所示
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也无济于事。
答案 0 :(得分:1)
在Windows上发生的Ubuntu,就像正常的Ubuntu安装jupyter一样,试图打开默认浏览器,只有在“Ubuntu on Windows”的情况下,它无法打开实际的默认浏览器您的Windows系统,而是打开“W3m”。因此,您需要通过按Q - >退出“w3m”。年。然后,您应该看到启动“jupyter notebook”时所期望的输出:
[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浏览器中,然后进行编码。