V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
推荐学习书目
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 · Aug 4, 2016 · 7956 views
    This topic created in 3553 days ago, the information mentioned may be changed or developed.

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

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