staging.inyokaproject.org

VScode vs VScodium - welche Variante würdet ihr denn wählen - mit welchen Plugins!? - auf Linux?

Status: Ungelöst | Ubuntu-Version: Ubuntu 19.10 (Eoan Ermine)
Antworten |

pregmatch

Avatar von pregmatch

Anmeldungsdatum:
30. Januar 2011

Beiträge: 484

hallo und guten Tag

ich will auf Linux auch eine Entwicklungumgebung haben - also eine IDE ( PyCharm) bzw. einen guten Editor. ATOM hab ich schon seit längerem. Nun soll auf alle Fälle noch VSCode hinzukommen. Den hab ich auf einem Windows schon am laufen. Hier im Forum hab ich die Frage schon mal ähnlich gestellt - und schon wertvolle Tipps bekommen vielen Dank.

Die neue Frage - erweitert - ist: soll ich nun auf VSCode oder Vscodium setzen - [und zwar um mit Python und MicroPython] zu arbeiten? vorweg: Ich bin sehr sehr froh hierüber schon auch einiges gefunden zu haben - auf der Wikiseite von Ubuntu: hier diese Erläuterungen:

Visual Studio Code, kurz auch VS Code, ist ein Quelltext-Editor von Microsoft. Er dient vorrangig der Entwicklung von Webanwendungen und ermöglicht laut eigener Angabe 🇬🇧 die Programmierung bzw. Erstellung von Quelltexten in C++, C#, CSS, Dockerfile, Go, HTML, JavaScript, JSON, Less, Markdown, PHP, Python, Sass, T-SQL und TypeScript. VS Code ist keine Entwicklungsumgebung (wie die fast gleichnamige Software Visual Studio). "Bis auf den Namen und einigen Funktionen wie IntelliSense hat VS Code nichts mit Visual Studio gemeinsam. [...] Im Unterschied zu Visual Studio arbeitet VS Code nicht mit Projektdateien, sondern auf Basis von Codedateien und Ordnern." (Quelle) Visual Studio Code ist kostenlos, quelloffen und plattformübergreifend für die Betriebssysteme Windows, Mac OS X und Linux (also auch Ubuntu) verfügbar.

vgl. https://wiki.ubuntuusers.de/Visual_Studio_Code/

darüber hinaus -sehr interessant für die Erweiterungen von VSCode https://lemariva.com/blog/2018/12/micropython-visual-studio-code-as-ide

MicroPython is a lean and efficient implementation of the Python 3 programming language that includes a small subset of the Python standard library and is optimised to run on microcontrollers and in constrained environments. Besides C++ and C, I use MicroPython to program microcontrollers, especially the ESP32/ESP8266 types. These two microcontrollers are compatible with MicroPython and it is easy to integrate sensors and actors programming using this language. I wrote a tutorial about installing MicroPython on the ESPs, as well a lot of articles about these microcontrollers and MicroPython. This is an update to the "Getting started with MicroPython": I am changing from Atom to Visual Studio Code (VSCode), and using the PyMakr extension, it is possible to program and debug MicroPython on VSCode.

We have covered Visual Studio Code before so you must know how much of an awesome code editor it is. While VS Code is open source freeware, itssource code is only available on Microsoft’s official GitHub repo and its downloads are licensed under a closed source license which contains telemetry so you’ll be happy with the app we have for you today. VSCodium is a tracking-free, free and open source build of Microsoft’s Visual Studio Code created so that developers will not have to build VS Code from source which contains telemetry/trackers. This fit is accomplished by using special scripts to clone the vscode repo, build it from source, and then upload the resulting binaries to VSCodium’s GitHub releases free of telemetry passes. With that being said, VSCodium is a replica of Visual Studio Code and thus, works in the same way with all the features and support present in its parent project. Except for the app icon – that’s different.

Features in VSCodium Free to use

Cross-Platform: Available on Windows, GNU/Linux, and Mac. Open source with source code available on GitHub. Native support for several languages. Additional functionality using extensions. IntelliSense and smart code completion. An advanced and robust built-in debugger. Native support for Git.

vgl. hier https://www.fossmint.com/vscodium-clone-of-visual-studio-code-for-linux/

nun - ich will mit Python bzw. MicroPython arbeiten. Dazu braucht es dann eine Abstimmung und Konfiguration - das Einbinden einiger Plugins usw. usf.

Wie würdet ihr vorgehen - welchem System den Vorzug geben!?

freue mich auf einen Tipp

pregmatch

(Themenstarter)
Avatar von pregmatch

Anmeldungsdatum:
30. Januar 2011

Beiträge: 484

zur Einrichtung der python-env. hab ich noch einen interessanten Beitrag gefunden.

https://python-forum.io/Thread-VS-Code-from-start?highlight=VSCode

With code. from command line in any folder will open files in that folder in VS Code. Example with virtual environment that build into Python venv

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
# Make
E:\div_code
λ python -m venv my_env
 
# cd in
E:\div_code
λ cd my_env
 
# Activate
E:\div_code\my_env
λ E:\div_code\my_env\Scripts\Activate
 
# Test pip
(my_env) E:\div_code\my_env
λ pip -V
pip 10.0.1 from e:\div_code\my_env\lib\site-packages\pip (python 3.7
 
# Install required package 
(my_env) E:\div_code\my_env
λ pip install requests
Collecting requests
 
# Start VS Code
(my_env) E:\div_code\my_env
λ code .

See now that it automatically find Python interpreter in virtual environment. So push run button it will use Python version in virtual environment.

see also https://docs.python-guide.org/dev/virtualenvs/

This tutorial walks you through installing and using Python packages. It will show you how to install and use the necessary tools and make strong recommendations on best practices. Keep in mind that Python is used for a great many different purposes, and precisely how you want to manage your dependencies may change based on how you decide to publish your software. The guidance presented here is most directly applicable to the development and deployment of network services (including web applications), but is also very well suited to managing development and testing environments for any kind of project.

Installing Pipenv Pipenv is a dependency manager for Python projects. If you’re familiar with Node.js’ npm or Ruby’s bundler, it is similar in spirit to those tools. While pip can install Python packages, Pipenv is recommended as it’s a higher-level tool that simplifies dependency management for common use cases.

Use pip to install Pipenv:

$ pip install --user pipenv

electron

Avatar von electron

Anmeldungsdatum:
1. Dezember 2015

Beiträge: 9

Hi,

ich habe gerade diesen Thread entdeckt, weil ich soeben ein Update auf den Visual Studio Code Artikel erstellt habe. Da findest Du nun, wie Du mit VSCodium Deine Installation aktuell halten kannst. Das VSCodium Projekt bietet nämlich für Ubuntu eine (Fremd-)Paketquelle an.

Ich würde zu VSCodium raten.

Funktional sind VSCodium und VSCode ja gleich, aber Microsoft hat bei seinen Paketen die Telemetrie eingeschaltet hat und sammelt allerhand Daten 😬 . Außerdem ist die Lizenz des Quelltextes zwar frei, aber nicht(!) die Lizenz der Microsoft Binär-Pakete ☹ . Die wissen wahrscheinlich, dass sich die wenigsten Nutzer den Quelltext selbst kompilieren (können). Zum Glück hat das VSCodium übernommen.

pregmatch

(Themenstarter)
Avatar von pregmatch

Anmeldungsdatum:
30. Januar 2011

Beiträge: 484

hallo Elektron, hallo liebe Community,

vorweg: vielen Dank für deine Antwort und die Tipps. Das ist super. Ich werde mir den Artikel ansehen.Die Gedanken bzgl. VSCodium leuchten ein - und das passt dann doch noch viel viel besser zu einer Linux-Distribution als MSVSCode. Auf die telemetrie - auf die kann ich verzichten.

also - ich bin auf Linux MX 19.3, einem Debian-basierten Linux-Typ. Ich werde da die Python-Entwicklungsumgebung einrichten: Ich habe mehrere Möglichkeiten:

Ich habe ein bisschen Erfahrung in ATOM, das ordentlich und erweiterbar ist. Es hat auch eine sehr schöne Github-Integration. Wir können auch PyCharm verwenden, eine voll ausgestattete IDE mit einer großartigen Python-Unterstützung.

VSCode ist ein sehr sehr großes Projekt auf Github - tatsächlich das größte.

Die Installation von VSCode auf MX ist nicht sonderlich schwierig - es gibt verschiedene Möglichkeiten. Für VSCode auf Debian-basierten Systemen: Wir können hier Flatpack verwenden, da es in MXPI integriert ist und es einfacher macht. Einige meiner Freunde verwenden dieses (Fedora) Verpackungssystem nicht. Ich kann Codium wie auf unten beschrieben installieren:

Es sollte funktionieren und wir erhalten ständig Updates, wenn wir Codium installieren. Hier sind die Schritte, die wir verwenden können: (Codium ist dasselbe wie Code, nur Microsoft 'Telemetrie' entfernt)

VSCodium: https://github.com/VSCodium/vscodium/releases

wget -qO - https://gitlab.com/paulcarroty/vscodium-deb-rpm-repo/raw/master/pub.gpg | sudo apt-key add - }}}

echo 'deb https://gitlab.com/paulcarroty/vscodium-deb-rpm-repo/raw/repos/debs/' | sudo tee --append /etc/apt/sources.list.d/vscodium.list }}}

sudo apt update && sudo apt install codium }}}

Anaconda: Übrigens gibt es noch eine andere Option - Anaconda. Wenn wir Anaconda installieren, ein riesiges wissenschaftliches Paket, verwenden es viele Forschungslabors. Es wird mit VS Code geliefert (gut, während der Installation müssen wir bestätigen, dass VS Code auch installiert werden soll) und dann wird VSCode in diesen integriert. Außerdem bekommen wir eine weitere IDE, einen einfacheren Spyder, sowie ein Jypiter-Notebook, das ich für bestimmte Dinge wirklich mag. Wir können auch Anaconda auschecken. Obwohl es verdammt groß ist, etwa 12 GB, und nachdem wir damit begonnen haben, virtuelle Umgebungen darin zu erstellen, wird es noch verdammt größer. Ah, ja, es ist perfekt für die Verwaltung virtueller Umgebungen. Wir können sie mit einem Mausklick erstellen, auswählen, welche Python-Version verwendet werden soll, welche Pakete ... alle mit der Maus, wenn wir die GUI bevorzugen. Viele Möglichkeiten ...

welche Hardwarevoraussetzungen - an Hardware.

a. Anadona b. Jupiter

awesome github ressoures für Python und Jupiterlab

https://github.com/vinta/awesome-python https://github.com/mauhai/awesome-jupyterlab

Aber ich werde - Elektron, deinen Tipp beherzigend auf VSCodium setzen. Danke nochmals für deinen Beitrag hier... vg

Antworten |