ubuntu服务器安装 jupyter lab
作者:互联网
-
安装jupyter lab
conda install jupyterlab
-
配置jupyter lab
-
生成登录密码
alan@root:~$ ipython In [1]: from notebook.auth import passwd In [2]: passwd() Enter password: Verify password: Out[2]: 'sha1:759cd475addc:37fc06c05b6e2454a7b897af52842068c47642a7'
-
生成对应的配置文件
alan@root:~$ jupyter lab --generate-config Writing default config to: /home/alan/.jupyter/jupyter_notebook_config.py
-
更改配置文件jupyter_notebook_config.py
c.NotebookApp.allow_root = True c.NotebookApp.ip = '0.0.0.0' c.NotebookApp.open_browser = False c.NotebookApp.password = u'sha1:56070cacc47e:e93ed513e0535efcfe63a5130f1a9f91810a93b2'
-
-
运行jupyter lab
# nohup表示ssh终端断开后仍然运行 # &表示允许后台运行 alan@root:~$ nohup jupyter lab &
运行成功之后在该网络上的随意一台电脑上输入 ip:8888 便可以访问到 jupyterlab 上。
-
更改python环境
-
安装插件
conda install nb_conda
-
标签:jupyter,root,alan,lab,ubuntu,NotebookApp,config 来源: https://blog.csdn.net/weixin_48136049/article/details/110642606