安裝
#python 2 pip install jupyterlab #python 3 pip3 install jupyterlab
生成配置文件
jupyter lab --generate-config
打開配置文件
sudo gedit /home/user/.jupyter/jupyter_notebook_config.py
修改配置文件
#刪除配置前面的#,配置就起作用了 #允許任何ip訪問 c.NotebookApp.ip='*' #為空后登陸就不用輸密碼了 c.NotebookApp.token='' #瀏覽器不會自啟動 c.NotebookApp.open_browser=False #監聽端口號 c.NotebookApp.port=8888 #允許遠程訪問 c.NotebookApp.allow_remote_access=True
啟動jupyter lab
jupyter lab
然后可以用同局域網的其他電子設備的瀏覽器訪問jupyter lab,在地址欄中輸入:ip:port。只要有瀏覽器就行,用手機都可以訪問。
jupyter lab主頁面