想在 windows 下的浏览器运行 ubuntu bash 的 jupyter notebook,有什么解决方法?

2016-08-04 08:46:27 +08:00
 Boristype000

在 bash 里安装了 jupyter notebook ,想在 windows 下的 chrome 运行。

6895 次点击
所在节点    Python
17 条回复
lll9p
2016-08-04 09:43:09 +08:00
没这么干过..直接访问 localhost:8888 不行?
mhohai
2016-08-04 10:06:46 +08:00
这么能折腾,为啥还用 Windows ,看不下去了都。。。
kamushin
2016-08-04 10:12:33 +08:00
cxyfreedom
2016-08-04 10:48:19 +08:00
用 anaconda 吧,自带 Jupyter Notebook
Boristype000
2016-08-04 10:49:35 +08:00
@lll9p 好像直接在 windows 的 chrome 这样是不行的
@kamushin 不知道 bash 能不能端口转发呢?
Boristype000
2016-08-04 10:51:35 +08:00
@cxyfreedom 主要是想用 tensorflow 。。这玩意儿只能运行在 linux 上,这不巨硬正好更新 ubuntu in Windows ,我在 bash 里面装好 tf 之后,想用 windows 的浏览器来交互,但是不大清除要怎么转发出来。大概是这么回事。。不好意思没解释清楚
zavior
2016-08-04 11:33:37 +08:00
jupyter notebook --ip 0.0.0.0
bdbai
2016-08-04 12:56:11 +08:00
我记得 Bash on Windows 宣传说,子系统和外部共用端口,直接监听就可以。现在不知道如何。
Boristype000
2016-08-04 13:36:00 +08:00
@zavior 好像的确可以通信,但是用了一运行就提示 kernel died 然后无限 restart ,不大知道怎么办
Boristype000
2016-08-04 13:38:17 +08:00
@zavior The kernel has died, and the automatic restart has failed. It is possible the kernel cannot be restarted. If you are not able to restart the kernel, you will still be able to save the notebook, but running code will no longer work until the notebook is reopened.
Boristype000
2016-08-04 13:42:58 +08:00
好像找到了原因,是因为 bash 的问题
https://github.com/jupyter/notebook/issues/1331
srlp
2016-08-04 16:23:49 +08:00
@Boristype000 老实说,你这种情况下应该尝试一下 docker 呃
tumb8r
2016-08-04 17:12:12 +08:00
right ,用 anaconda ,然后 cmd 输入: ipython jupter
dvorak4tzx
2016-08-04 18:28:43 +08:00
要端口映射到本地,我正好写了博客:[远程使用 Jupyter Notebook]( http://tangzx.qiniudn.com/post-0109-remote-jupyter.html )
Boristype000
2016-08-04 18:35:52 +08:00
@srlp 这不巨硬大法嘛。。如果太折腾还是弄 docker 算了
winooxx
2016-08-04 23:14:55 +08:00
Bash on Ubuntu on Windows 的网络栈还未完善,你 ping 或者 mtr 一下就知道拿不到 raw socket 了
Wvvi
2018-05-06 23:20:09 +08:00
我的 juputer notebook 服务在 ubuntu on windows 完好启动,可以把 url 粘贴到本地浏览器却没法打开了,请问楼主有没有碰到这样的情况,或者有什么好的办法可以解决呢?

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://www.v2ex.com/t/296987

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX