linux系统下jupyterlab安装及配置完整教程
1、pip安装慢的问题
  安装速度慢是镜像源的问题,可以参考我的另外⼀篇⽂章。
2、版本问题
  如果出现类似的警告,可以直接输⼊#echo $?,如果返回值为0,就可以直接进⾏第三步,配置jupyter
linux完全安装3、配置jupyter
#jupyter notebook --generate-config --allow-root
#vim /root/.jupyter/jupyter_notebook_config.py
到这⼀⾏#c.NotebookApp.allow_root = False 去掉#,并修改成True即可解决root权限运⾏的问题,c.NotebookApp.allow_root =True保存,然后重启jupyter
#jupyter notebook
4、执⾏#ipython
In [1]: from notebook.auth import passwd
In [2]: passwd()
两次确认密码之后,会得到⼀个加密的sha1密码段
sha1:9f7be0ce4275:163fe21b02f70197924ecf93627eb145cce6d52e
然后复制 ‘sha1:9f7be0ce4275:163fe21b02f70197924ecf93627eb145cce6d52e’ 粘贴⾄配置⽂件、
root/.jupyter/jupyter_notebook_config.py(记得去掉 #)
c.NotebookApp.password = u'sha1:9f7be0ce4275:163fe21b02f70197924ecf93627eb145cce6d52e'
6、调⾄后台运⾏
  jupyter notebook启动ipython后不需要我们再做任何输⼊,也不能输⼊,只能通过当前窗⼝查看jupyter的运⾏情况和运⾏⽇志,占⽤了⼀个terminal 窗⼝,完全没必要。当远程连接到服务器时,ssh窗⼝可能会⾃动断开,影响程序运⾏。
  1.⼊门级: jupyter notebook --allow-root > jupyter.log 2>&1 &
  2.进阶版: nohup jupyter notebook --allow-root > jupyter.log 2>&1 &
  jupyter.log这个⽂件保存交互⽇志。可以⽤tail,head等命令查看。