conda env list source activate ****2)生成jupyter配置文件:
jupyter notebook --generate-config
#此命令会在目录~下生成.jupyter文件夹及jupyter_notebook_config.py配置文件
3)生成密钥,用于登录jupyterjupyter notebook password4)修改2)中生成的jupyter的配置文件:
①
vi ~/.jupyter/jupyter_notebook_config.py
回车
②
在文件末增加内容(文件很长,快捷键-大写G,直接跳到文件末尾):
c.NotebookApp.allow_remote_access = True c.NotebookApp.open_browser = False c.NotebookApp.ip = '*' c.NotebookApp.allow_root = True c.NotebookApp.port = 1111
注:上述属性在配置文件中默认都是注释掉,而且文档较长,一个个找起来修改比较麻烦,索性在文件末尾直接配置。
③esc退出编辑模式,:wq 保存退出。
nohup jupyter notebook > ~/.jupyter/jupyter.log 2>&1 &
jupyter进程:
ps -aux | grep jupyter
查端口:
netstat -ntlp6)本地登录:
http://192.***.**.**:1111/
注意:
jupyter 500 : Internal Server Error错误
pip install --upgrade --user nbconvert



