- Copy
jupyter-lab.desktop
to~/.local/share/applications
- Copy
jupyter-lab.svg
to~/.local/share/icons
- Restart gnome-desktop session (Alt+F2 ->
restart
)
Last active
August 10, 2023 14:42
-
-
Save egormkn/672764e7ce3bdaf549b62a5e70eece79 to your computer and use it in GitHub Desktop.
Running JupyterLab as a desktop application on Linux
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[Desktop Entry] | |
Name=Jupyter Lab | |
Comment=Start Jupyter Lab server | |
Comment[ru_RU]=Запуск сервера Jupyter Lab | |
Exec=gnome-terminal --class jupyter-lab -x jupyter lab --port 8888 | |
Icon=jupyter-lab | |
Type=Application | |
Categories=Development; | |
StartupNotify=true | |
StartupWMClass=jupyter-lab | |
Actions=open-browser | |
[Desktop Action open-browser] | |
Name=Open in browser | |
Name[ru_RU]=Открыть в браузере | |
Exec=xdg-open http://localhost:8888/lab |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
thank you, It worked for me. first of all, I downloaded my favorite icon from Google and downloaded it with the new name of Jupyter-lab.png
after that, I moved this png file to ~/.local/share/icons with this code on the terminal:
sudo mv jupyter-lab.png ~/.local/share/icons
I create a text on my desktop in the terminal with this code:
touch jupyter-lab.desktop
then I copied these lines to this file. (Change [MYCOMPUTERNAME] with your computer name)
[Desktop Entry] Name=Jupyter Lab Comment=Run Jupyter Lab Exec=/home/[MYCOMPUTERNAME]/anaconda3/bin/jupyter-lab Icon=/home/[MYCOMPUTERNAME]/.local/share/icons/Jupyter-lab.png Type=Application Categories=Development;Education StartupNotify=true StartupWMClass=jupyter-lab Actions=open-browser
then I copied this file to ~/.local/share/applications by this code on terminal:
mv jupyter-lab.desktop ~/.local/share/applications