ubuntu: 将jupyter-lab保存为桌面快捷方式和favourites
desktop shortcut
-
建立一个新的desktop文件
cd ~/Desktop touch Jupyter-lab.desktop
将文件修改成如下:
[Desktop Entry] Version=1.0 Name=Jupyterlab Comment=Back up your data with one click Exec=/home/cjb/.local/bin//jupyter-lab Icon=/home/cjb/.local/share/icons/jupyter.png Terminal=false Type=Application Categories=Utility;Application;
其中
Exec
和Icon
分别为jupyterlab的启动命令和图标[外链图片转存失败,源站可能有防盗链机制,建议将图片保存下来直接上传(img-EY24DUJq-1677851431438)(https://pic2.zhimg.com/v2-1e2224d86b2beb80ccf160a877447be1_b.jpg)]
jupyter-lab
-
给予文件运行权限
cd ~/Desktop sudo chmod +x Jupyter-lab.desktop
然后右击快捷方式,选择 allowing to launch
add to favourites
cp ~/Desktop/Jupyter-lab.desktop ~/.local/share/applications
这一指令让我们可以在菜单中搜索到jupyter-lab:
img
然后右键选择add to favourites