ubuntu在远程服务器上搭建jupyter服务

环境:python2.7   ubuntu server16.04     conda 4.3.21    IPython 5.3.0

启动时在不能用root用户启动。

不知道为什么,下面的这个教程在ubuntu16.04非服务器上没能够搞成功。报错原因是socket.error: [Errno 99] Cannot assign requested address

1、ipython,进入ipython环境:

ubuntu在远程服务器上搭建jupyter服务_第1张图片

2、

ubuntu在远程服务器上搭建jupyter服务_第2张图片
ubuntu在远程服务器上搭建jupyter服务_第3张图片

3、在生成的那个两个文件路径下(即.ipython/profile_nbserer/)下,建立一个文件ipython_notebook_config.py  ,然后,内容填写如下:

ubuntu在远程服务器上搭建jupyter服务_第4张图片

4、以上是在root用户下建立的,直接用ipython notebook --profile=nbserver命令无法启动。

用下面的命令提示推荐不要用root权限

于是,我在个人用户下面启动成功:

启动命令:

ubuntu在远程服务器上搭建jupyter服务_第5张图片

ZPJ@ubuntu201:~$  jupyter notebook --ip=10.10.0.201  --no-browser --port=9999 --notebook-dir=/home/ZPJ/mycode

你可能感兴趣的:(ubuntu在远程服务器上搭建jupyter服务)