Windows10有Ubuntu子系统,这真的很好。在安装了miniconda
之后,我使用conda
安装了ipython
和jupyter 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
子系统没有web浏览器,如何使用jupyter notebook
?系统有没有什么技巧可以用来调用Win10的web浏览器?或者只是让子系统成为远程主机,然后Win10使用web浏览器通过ip连接到它?
发布于 2017-08-03 23:21:54
Linux的Win10子系统仍然是Windows。Linux进程并存,并且重要的是使用相同的IP堆栈。因此,Jupyter and浏览器确实可以访问localhost:8888
并找到Win32 Notebook。
发布于 2019-02-13 14:59:16
你可以在https://gist.github.com/kauffmanes/5e74916617f9993bc3479f401dfec7da上找到答案
要打开jupyter,请键入$ jupyter notebook --no-browser。no browser标志仍将在端口8888上运行Jupyter,但不会自动将其弹出打开。这是必要的,因为您的子系统中(可能)没有浏览器。在终端中,它会提供一个要粘贴到浏览器中的链接。如果它起作用了,你应该看到你的笔记本!
还有雨果·费雷拉的博客。https://medium.com/hugo-ferreiras-blog/using-windows-subsystem-for-linux-for-data-science-9a8e68d7610c和https://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
https://stackoverflow.com/questions/45488413
复制相似问题