在Linux的Windows子系统中使用Jupyter [英] Using Jupyter with Windows Subsystem for Linux
问题描述
在Windows 10上使用Ubuntu bash终端(此处的安装说明),我安装了Anaconda,并且一直在使用Jupyter笔记本电脑而不会出现问题.不幸的是,Jupyter无法从子系统中找到可运行的浏览器,因此我必须将其输出的链接复制并粘贴到终端中-但这是可行的.主要问题是当我尝试打开多个笔记本时出现的.通常,Jupyter会检测到已经使用了端口(默认情况下为8888
)并创建了一个新端口,但是似乎无法检测到该端口,因此当我使用它生成的链接时,我最终会查看第一个我打开的笔记本不是新笔记本.
Using the Ubuntu bash terminal on Windows 10 (installation instructions here), I installed Anaconda and have been using Jupyter notebooks without a problem. Unfortunately, Jupyter is unable to locate a runnable browser from within the subsystem, so I have to copy and paste the link it outputs in the terminal - but that is workable. The main issue comes when I try to open multiple notebooks. Normally, Jupyter would detect that a port (8888
by default) is already being used and make a new one, but it seems to fail to detect this so that when I use the link it generates, I end up looking at the first notebook I opened instead of the new one.
任何想法可能是什么问题?而且,如果没有,我该如何手动解决呢?
Any idea what the issue might be? And, if not, how I can manually get around this?
推荐答案
启动笔记本电脑时手动分配其他端口号.例如:
Assign different port number manually when you start the notebook. For example:
jupyter notebook --port=8889
这篇关于在Linux的Windows子系统中使用Jupyter的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!