Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
lehrkraefte:sbt:informatik:glf22:python-environment [2022/08/15 15:44] Karlheinz Schubert created |
lehrkraefte:sbt:informatik:glf22:python-environment [2023/08/18 00:40] (current) Karlheinz Schubert |
||
---|---|---|---|
Line 1: | Line 1: | ||
==== Anleitung (VisualStudio) code ==== | ==== Anleitung (VisualStudio) code ==== | ||
=== Download und Installation === | === Download und Installation === | ||
- | [[https:// | ||
- | === Vorschlag zu code Extensions für das GLF Informatik === | + | * Download [[https://code.visualstudio.com/ |
+ | * Installation Code (normalerweise einfach Doppelklick und Anweisungen folgen) | ||
+ | * Die beiden Optionen "Add ... im Kontextmenü" | ||
+ | * Code gleich wieder schliessen | ||
+ | * Wechsel in das Informatik | ||
+ | * Betätigen, dass man dem Autor in diesem Verzeichnis vertraut: {{: | ||
+ | * Installation aller empfohlenen [[https:// | ||
+ | * [[https:// | ||
- | code-extensions.cmd: | + | |
- | < | + | === Vorschlag zu Code Extensions für das GLF Informatik === |
+ | |||
+ | Kopieren Sie das folgende File in das Verzeichnis '' | ||
+ | |||
+ | <code json extensions.json> | ||
+ | { | ||
+ | // See https:// | ||
+ | // Extension identifier format: ${publisher}.${name}. Example: vscode.csharp | ||
+ | // List of extensions which should be recommended for users of this workspace. | ||
+ | " | ||
+ | "ms-python.isort", | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | ], | ||
+ | // List of extensions | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | ] | ||
+ | } | ||
+ | </code> | ||
+ | Die vorgeschlagenen Erweiterungen stehen dann im Extension Pane unter < | ||
+ | |||
+ | <hidden Variante 2) Batchdatei zur automatischen Installation der Erweiterungen> | ||
+ | <code bash code-extensions.cmd> | ||
@echo off | @echo off | ||
rem created with | rem created with | ||
Line 20: | Line 58: | ||
call code --install-extension ms-python.python --force | call code --install-extension ms-python.python --force | ||
call code --install-extension ms-python.vscode-pylance --force | call code --install-extension ms-python.vscode-pylance --force | ||
- | |||
- | echo ------- jupyther --------------------------------------- | ||
- | call code --install-extension ms-toolsai.jupyter --force | ||
- | call code --install-extension ms-toolsai.jupyter-keymap --force | ||
- | call code --install-extension ms-toolsai.jupyter-renderers --force | ||
echo ------- ev3 lego roboter ------------------------------- | echo ------- ev3 lego roboter ------------------------------- | ||
Line 32: | Line 65: | ||
echo ------- html, js development --------------------------- | echo ------- html, js development --------------------------- | ||
call code --install-extension firefox-devtools.vscode-firefox-debug --force | call code --install-extension firefox-devtools.vscode-firefox-debug --force | ||
- | |||
- | echo ------- embedded development --------------------------- | ||
- | call code --install-extension platformio.platformio-ide --force | ||
- | call code --install-extension ms-vscode.cpptools --force | ||
echo formatters | echo formatters | ||
Line 44: | Line 73: | ||
call code --list-extensions | call code --list-extensions | ||
echo ======================================================= | echo ======================================================= | ||
+ | |||
+ | </ | ||
+ | |||
+ | <hidden Variante 3) Für Python-Fans: | ||
+ | <code python code-extensions.py> | ||
+ | """ | ||
+ | Install recommended code extensions for GLF at KSBG | ||
+ | """ | ||
+ | import os | ||
+ | import subprocess | ||
+ | |||
+ | results = [] | ||
+ | |||
+ | extensions = [ | ||
+ | # ------- documentation: | ||
+ | ' | ||
+ | ' | ||
+ | ' | ||
+ | # ------- Python ----------------------------------------- | ||
+ | ' | ||
+ | ' | ||
+ | # ------- ev3 lego roboter ------------------------------- | ||
+ | ' | ||
+ | ' | ||
+ | # ------- html, js development --------------------------- | ||
+ | ' | ||
+ | # ------- formatters ------------------------------------- | ||
+ | ' | ||
+ | ' | ||
+ | ] | ||
+ | |||
+ | for ext in extensions: | ||
+ | result = subprocess.run( | ||
+ | [' | ||
+ | results.append( | ||
+ | f' | ||
+ | |||
+ | print(f' | ||
+ | for result in results: | ||
+ | print(result) | ||
</ | </ | ||
+ | </ | ||
+ |