V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
推荐学习书目
Learn Python the Hard Way
Python Sites
PyPI - Python Package Index
http://diveintopython.org/toc/index.html
Pocoo
值得关注的项目
PyPy
Celery
Jinja2
Read the Docs
gevent
pyenv
virtualenv
Stackless Python
Beautiful Soup
结巴中文分词
Green Unicorn
Sentry
Shovel
Pyflakes
pytest
Python 编程
pep8 Checker
Styles
PEP 8
Google Python Style Guide
Code Style from The Hitchhiker's Guide
Boristype000
V2EX  ›  Python

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

  •  
  •   Boristype000 · 2016-08-04 08:46:27 +08:00 · 6879 次点击
    这是一个创建于 2815 天前的主题,其中的信息可能已经有所发展或是发生改变。

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

    17 条回复    2018-05-06 23:20:09 +08:00
    lll9p
        1
    lll9p  
       2016-08-04 09:43:09 +08:00
    没这么干过..直接访问 localhost:8888 不行?
    mhohai
        2
    mhohai  
       2016-08-04 10:06:46 +08:00
    这么能折腾,为啥还用 Windows ,看不下去了都。。。
    kamushin
        3
    kamushin  
       2016-08-04 10:12:33 +08:00
    cxyfreedom
        4
    cxyfreedom  
       2016-08-04 10:48:19 +08:00
    用 anaconda 吧,自带 Jupyter Notebook
    Boristype000
        5
    Boristype000  
    OP
       2016-08-04 10:49:35 +08:00
    @lll9p 好像直接在 windows 的 chrome 这样是不行的
    @kamushin 不知道 bash 能不能端口转发呢?
    Boristype000
        6
    Boristype000  
    OP
       2016-08-04 10:51:35 +08:00
    @cxyfreedom 主要是想用 tensorflow 。。这玩意儿只能运行在 linux 上,这不巨硬正好更新 ubuntu in Windows ,我在 bash 里面装好 tf 之后,想用 windows 的浏览器来交互,但是不大清除要怎么转发出来。大概是这么回事。。不好意思没解释清楚
    zavior
        7
    zavior  
       2016-08-04 11:33:37 +08:00
    jupyter notebook --ip 0.0.0.0
    bdbai
        8
    bdbai  
       2016-08-04 12:56:11 +08:00 via Android
    我记得 Bash on Windows 宣传说,子系统和外部共用端口,直接监听就可以。现在不知道如何。
    Boristype000
        9
    Boristype000  
    OP
       2016-08-04 13:36:00 +08:00
    @zavior 好像的确可以通信,但是用了一运行就提示 kernel died 然后无限 restart ,不大知道怎么办
    Boristype000
        10
    Boristype000  
    OP
       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
        11
    Boristype000  
    OP
       2016-08-04 13:42:58 +08:00
    好像找到了原因,是因为 bash 的问题
    https://github.com/jupyter/notebook/issues/1331
    srlp
        12
    srlp  
       2016-08-04 16:23:49 +08:00 via iPhone
    @Boristype000 老实说,你这种情况下应该尝试一下 docker 呃
    tumb8r
        13
    tumb8r  
       2016-08-04 17:12:12 +08:00
    right ,用 anaconda ,然后 cmd 输入: ipython jupter
    dvorak4tzx
        14
    dvorak4tzx  
       2016-08-04 18:28:43 +08:00
    要端口映射到本地,我正好写了博客:[远程使用 Jupyter Notebook]( http://tangzx.qiniudn.com/post-0109-remote-jupyter.html )
    Boristype000
        15
    Boristype000  
    OP
       2016-08-04 18:35:52 +08:00
    @srlp 这不巨硬大法嘛。。如果太折腾还是弄 docker 算了
    winooxx
        16
    winooxx  
       2016-08-04 23:14:55 +08:00
    Bash on Ubuntu on Windows 的网络栈还未完善,你 ping 或者 mtr 一下就知道拿不到 raw socket 了
    Wvvi
        17
    Wvvi  
       2018-05-06 23:20:09 +08:00
    我的 juputer notebook 服务在 ubuntu on windows 完好启动,可以把 url 粘贴到本地浏览器却没法打开了,请问楼主有没有碰到这样的情况,或者有什么好的办法可以解决呢?
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   5241 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 30ms · UTC 07:10 · PVG 15:10 · LAX 00:10 · JFK 03:10
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.