【问题标题】:How to use jupyter notebook in win10 subsystem?如何在win10子系统中使用jupyter notebook?
【发布时间】:2017-08-03 15:19:48
【问题描述】:

Windows10 有 Ubuntu 子系统真是太好了。在我安装了miniconda 之后,我使用conda 安装了ipythonjupyter notebook

wangsx@SC-201708020022:~$ jupyter notebook
[I 22:57:46.113 NotebookApp] Serving notebooks from local directory: /home/wangsx
[I 22:57:46.114 NotebookApp] 0 active kernels
[I 22:57:46.114 NotebookApp] The Jupyter Notebook is running at: http://localhost:8888/?token=0f42ee2c4a254babb7f0b5ddb1ea0dc490bab6673ce7e710
[I 22:57:46.114 NotebookApp] Use Control-C to stop this server and shut down all kernels (twice to skip confirmation).
[W 22:57:46.116 NotebookApp] No web browser found: could not locate runnable browser.
[C 22:57:46.117 NotebookApp]

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

子系统没有网页浏览器,我该如何使用jupyter notebook。系统调用Win10的网页浏览器有什么技巧吗?还是让子系统做远程主机,Win10用浏览器通过ip连接?

【问题讨论】:

  • 您是否尝试过将令牌复制并粘贴到浏览器中?

标签: windows-10 anaconda jupyter-notebook conda


【解决方案1】:

Linux 的 Win10 子系统仍然是 Windows。 Linux 进程并存,重要的是使用相同的 IP 堆栈。所以,Win32 浏览器确实可以访问localhost:8888 并找到 Jupyter Notebook tehre。

【讨论】:

    【解决方案2】:

    你可以找到答案 https://gist.github.com/kauffmanes/5e74916617f9993bc3479f401dfec7da

    要打开 jupyter,请输入 $ jupyter notebook --no-browser。 no browser 标志仍将在端口 8888 上运行 Jupyter,但不会自动将其弹出打开。这是必要的,因为您的子系统中(可能)没有浏览器。在终端中,它将为您提供一个链接以粘贴到您的浏览器中。如果成功了,你应该会看到你的笔记本!

    还有 Hugo Ferreira 的博客。 https://medium.com/hugo-ferreiras-blog/using-windows-subsystem-for-linux-for-data-science-9a8e68d7610chttps://www.digitalocean.com/community/tutorials/how-to-install-the-anaconda-python-distribution-on-ubuntu-16-04 注意:Anaconda 的最新版本是 Anaconda3-2018.12-Linux-x86_64。 所以只需运行:

    wget https://repo.anaconda.com/archive/Anaconda3-2018.12-Linux-x86_64.sh
    bash Anaconda3-2018.12-Linux-x86_64.sh
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2021-12-20
      • 1970-01-01
      • 1970-01-01
      • 2023-01-28
      相关资源
      最近更新 更多