简体   繁体   English

从Windows 10上安装的ubuntu的bash启动jupyter笔记本

[英]starting jupyter notebook from ubuntu's bash installed on windows 10

When I type jupyter notebook in the ubuntu bash installed on windows 10, a file is opened inside the shell which looks like this 当我在Windows 10上安装的ubuntu bash中键入jupyter notebook ,将在外壳中打开一个文件,如下所示

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.

I tried to type jupyter notebook --no_browser the notebook starts but it keeps stopping reconnecting all the time. 我尝试键入jupyter notebook --no_browser ,笔记本启动了,但一直都在停止重新连接。 Also the answer here didn't help. 同样, 这里的答案也无济于事。

What happens is that Ubuntu on Windows, just as a normal Ubuntu installation of jupyter would, tries to open the default browser, only that in "Ubuntu on Windows"'s case, it can't open the actual default browser of your Windows system and instead opens "w3m". 发生的是,Windows上的Ubuntu就像普通的jupyter Ubuntu安装一样,试图打开默认浏览器,仅在“ Windows上的Ubuntu”的情况下,它无法打开Windows系统的实际默认浏览器。而是打开“ w3m”。 Therefore, you need to quit "w3m" by hitting Q -> y. 因此,您需要通过单击Q-> y退出“ w3m”。 Then, you should see the output that you would expect when starting "jupyter notebook": 然后,您应该看到启动“ 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

From there on out, the procedure is exactly the same as normally. 从那以后,该过程与通常的过程完全相同。 Copy the provided URL with token into your actual Windows browser, and code along. 将提供的带有令牌的URL复制到实际的Windows浏览器中,然后进行编码。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM