安装jupyter
pip install jupyter -i https://pypi.tuna.tsinghua.edu.cn/simple
使用
# 初始化配置文件
jupyter notebook --generate-config
# 设置密码
jupyter notebook password
# 启动,并使用http://localhost:8888
jupyter notebook
开放ip给其他机器访问
修改/home/usrname/.jupyter/jupyter_notebook_config.py,增加如下内容
c.NotebookApp.allow_remote_access = True
c.NotebookApp.ip = '*'
或者修改/home/usrname/.jupyter/jupyter_notebook_config.json,增加如下内容
"allow_remote_access":true,
"ip":"*"