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

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

  •  
  •   XiiLii · 2018-05-29 14:29:38 +08:00 · 3198 次点击
    这是一个创建于 2157 天前的主题,其中的信息可能已经有所发展或是发生改变。

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

    10 条回复    2018-05-30 00:54:17 +08:00
    mcluyu
        1
    mcluyu  
       2018-05-29 15:32:36 +08:00
    电脑 ip 地址:8888
    weyou
        2
    weyou  
       2018-05-29 15:53:14 +08:00   ❤️ 1
    jupyter notebook --ip xx.xx.xx.xx --port 8888
    xx.xx.xx.xx 是你的电脑 ip 地址。

    另外,手机上用 termux 装一个 jupyter 不好么?
    neosfung
        3
    neosfung  
       2018-05-29 17:11:09 +08:00
    先设置好允许 0.0.0.0 访问 jupyter notebook
    然后就可以直接访问了
    neosfung
        4
    neosfung  
       2018-05-29 17:11:26 +08:00
    防火墙也需要允许相关端口访问
    XiiLii
        5
    XiiLii  
    OP
       2018-05-29 18:13:10 +08:00
    @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
       2018-05-29 18:15:03 +08:00
    @weyou 我说的不知道如何编辑是指不知道如何进入编辑模式
    saluton
        7
    saluton  
       2018-05-29 18:20:24 +08:00
    token 可以通过设置密码解决

    jupyter-notebook password

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

    我 termux 上的 jupyter 排版还可以啊,编辑也正常,应该是同一套 ui,你这种方式没理由会排版差啊。我不知如何上图
    XiiLii
        10
    XiiLii  
    OP
       2018-05-30 00:54:17 +08:00
    @weyou 是我的主题问题,我已经解决了,谢谢了
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   4491 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 29ms · UTC 04:06 · PVG 12:06 · LAX 21:06 · JFK 00:06
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.