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
XiiLii
V2EX  ›  Python

Win10 下的 Jupyter Notebook 如何让手机通过 WiFi 访问?

  •  
  •   XiiLii · May 29, 2018 · 3662 views
    This topic created in 2890 days ago, the information mentioned may be changed or developed.

    我想通过手机上访问电脑上的 localhost:8888,如何操作?

    10 replies    2018-05-30 00:54:17 +08:00
    mcluyu
        1
    mcluyu  
       May 29, 2018
    电脑 ip 地址:8888
    weyou
        2
    weyou  
       May 29, 2018   ❤️ 1
    jupyter notebook --ip xx.xx.xx.xx --port 8888
    xx.xx.xx.xx 是你的电脑 ip 地址。

    另外,手机上用 termux 装一个 jupyter 不好么?
    neosfung
        3
    neosfung  
       May 29, 2018
    先设置好允许 0.0.0.0 访问 jupyter notebook
    然后就可以直接访问了
    neosfung
        4
    neosfung  
       May 29, 2018
    防火墙也需要允许相关端口访问
    XiiLii
        5
    XiiLii  
    OP
       May 29, 2018
    @weyou 还真的可以,而且不用关闭防火墙,不过有很多问题。
    比如:
    1. 登陆时需要那个很长的 token 码

    2. 手机浏览器看到的排版不太友好,而且我还不知如何编辑

    3. 刚打开一个 .ipynb 文件不久就提示:“ Connection failed:A connection to the notebook server could not be established. The notebook will continue trying to reconnect. Check your network connection or notebook server configuration.”

    这些问题有解决方法吗?

    我手机之前装过 Termux,如果手机上装一个 jupyter 会不会也有上面的 3 种问题?
    XiiLii
        6
    XiiLii  
    OP
       May 29, 2018
    @weyou 我说的不知道如何编辑是指不知道如何进入编辑模式
    saluton
        7
    saluton  
       May 29, 2018
    token 可以通过设置密码解决

    jupyter-notebook password

    剩下 2 个问题不知道
    XiiLii
        8
    XiiLii  
    OP
       May 29, 2018
    @saluton 刚刚知道原因了,是我之前换过主题,这个主题对手机端不友好,换回默认主题就可以。第 3 个问题我发现关闭禁用密码就可以了
    weyou
        9
    weyou  
       May 29, 2018 via Android
    @XiiLii 没试过这种方式,连接不稳定的问题帮不了你。

    我 termux 上的 jupyter 排版还可以啊,编辑也正常,应该是同一套 ui,你这种方式没理由会排版差啊。我不知如何上图
    XiiLii
        10
    XiiLii  
    OP
       May 30, 2018
    @weyou 是我的主题问题,我已经解决了,谢谢了
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   1142 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 37ms · UTC 23:07 · PVG 07:07 · LAX 16:07 · JFK 19:07
    ♥ Do have faith in what you're doing.