美文网首页
安装anaconda使用jupyter notebook配置ip

安装anaconda使用jupyter notebook配置ip

作者: eyeglasses | 来源:发表于2017-08-25 16:02 被阅读2740次

    安装anaconda成功,执行命令jupyter notebook。

    发现只能本机使用,而我自己买的是vps,有独立的ip地址,怎么配置才能使用外网ip访问?

    访问jupyter官网,发现通过命令可以配置jupyter。

    具体步骤如下:

    1.使用命令 jupyter notebook --generate-config 产生配置文件。

    2.编辑配置文件jupyter_notebook_config.py,它在./jupyter目录里面。

    3.使用vi编辑jupyter_notebook_config.py。

    4.找到#c.NotebookApp.ip = 'localhost',把#号去掉,localhost改成自己的ip地址。

    重新启动jupyter,ip更改成功。

    相关文章

      网友评论

          本文标题:安装anaconda使用jupyter notebook配置ip

          本文链接:https://www.haomeiwen.com/subject/xmnudxtx.html