文件鏈接
https://wangxin1248.github.io/linux/2018/11/python3-data-science-01.html
1 安裝
pip install jupyterlab?-i https://pypi.tuna.tsinghua.edu.cn/simple
或者
pip3 install jupyterlab?-i https://pypi.tuna.tsinghua.edu.cn/simple
2 配置?
注意:以下命令是將 JupyterLab 安裝在服務(wù)器上的苍在,本機電腦安裝的話并不需要番川。
生成登陸密碼:
ipython3
In[1]:from notebook.auth import passwd
In[2]:passwd()?
Enterpassword:
Verifypassword:
Out[2]:'yourstring'
生成對應(yīng)的配置文件:
jupyter lab --generate-config
屏幕輸出configfile路勁
vi 打開拷貝
c.NotebookApp.allow_root = True
c.NotebookApp.ip = '0.0.0.0'
c.NotebookApp.open_browser = False
c.NotebookApp.password = u'yourstring'
運行?
which python
which python3
nohup jupyter lab &
sudo ufw allow 8888
運行成功之后在該網(wǎng)絡(luò)上的隨意一臺電腦上輸入?ip:8888?便可以訪問到 jupyterlab 上。