Desktop shortcut entry untuk Spyder (dalam 'environment')

Contoh konfigurasi dan instalasi Spyder3 dalam pengaturan environment di Python

Pembuatan environment:

python3 -m venv spyder-env
source spyder-env/bin/activate

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:



You'll only receive email when they publish something new.

More from Sunu Pradana