Jupyter notebook

Centos 7 配置 Jupyter 

# Centos 7 Python2.7.5 PIP 19.0.2
curl -Lso- https://feeday.github.io/sh/pip.py | python
curl https://bootstrap.pypa.io/get-pip.py | python
pip -V  #查看版本
pip install ipython   #安装
pip install ipython notebook
ipython  #运行
In [1]: from IPython.lib import passwd
In [2]: passwd()          #输入密码
Enter password:
Verify password:
Out[2]: 'sha1:................................' # 根据你的密码生成sha1值
sha1:................................   #复制值
ipython profile create myserver    #创建服务器 myserver 自定义
cd /home/yourname/.ipython/profile_myserver/ #切换到配置目录
vi ipython_notebook_config.py  #编辑配置文件
c = get_config()
c.IPKernelApp.pylab = 'inline'
c.NotebookApp.ip='*'
c.NotebookApp.open_browser = False
c.NotebookApp.password = u'................................'
c.NotebookApp.port = 1224
#把值复制到之到相应位置......
ipython notebook --no-browser --port=1224 --allow-root  #启动服务
ssh -N -f -L 127.0.0.1:1314:127.0.0.1:1224 user@address   #本地与服务连接