Desktop shortcut entry untuk Spyder (dalam 'environment')
August 16, 2021•186 words
Contoh konfigurasi dan instalasi Spyder3 dalam pengaturan environment di Python
Pembuatan environment:
Insalasi:
pip3 install spyder
Catatan: Kadang-kadang perintah instalasi perlu diulangi karena koneksi Internet terputus saat download.
Perintah upgrading dengan menggunakan pip:
pip3 install --upgrade spyder
Contoh isi mySpy.sh
#!/bin/bash
/home/pengguna/spyder-env/bin/python3 /home/pengguna/spyder-env/bin/spyder
Contoh isi desktop chortcut
[Desktop Entry]
Type=Application
Version=1.0
Name=Spyder3
GenericName=Spyder3
Comment=The Scientific Python Development Environment - Python 3
Icon=/home/pengguna/0000xAPPIMAGE/appIcons/spyder.png
Exec="/home/pengguna/spyder-env/bin/python3" "/home/pengguna/spyder-env/bin/spyder"
Terminal=false
MimeType=text/x-python;
Categories=Development;Science;IDE;Qt;
Keywords=Development;Science;IDE;Qt;
StartupNotify=true
StartupWMClass=Spyder
Acuan:
- https://docs.spyder-ide.org/current/installation.html
- https://askubuntu.com/questions/1018253/launching-script-containing-virtual-env-through-desktop-icon
- https://packaging.python.org/guides/installing-using-pip-and-virtual-environments/