Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
lehrkraefte:sbt:informatik:glf22:python-environment [2022/08/15 18:15] Karlheinz Schubert |
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:// | ||
+ | |||
+ | === 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. | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | ], | ||
+ | // List of extensions recommended by VS Code that should not be recommended for users of this workspace. | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | ] | ||
+ | } | ||
+ | </ | ||
+ | Die vorgeschlagenen Erweiterungen stehen dann im Extension Pane unter < | ||
+ | |||
+ | <hidden Variante 2) Batchdatei zur automatischen Installation der Erweiterungen> | ||
<code bash code-extensions.cmd> | <code bash code-extensions.cmd> | ||
@echo off | @echo off | ||
Line 19: | 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 31: | 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 74: | ||
echo ======================================================= | echo ======================================================= | ||
- | </ | + | </code></ |
- | oder für Freaks in Python: | + | <hidden Variante 3) Für Python-Fans: Installation für die Erweiterungen> |
- | <code python | + | <code python |
""" | """ | ||
- | Install | + | Install |
""" | """ | ||
import os | import os | ||
Line 64: | Line 94: | ||
' | ' | ||
' | ' | ||
- | # ------- jupyther --------------------------------------- | ||
- | ' | ||
- | ' | ||
- | ' | ||
# ------- ev3 lego roboter ------------------------------- | # ------- ev3 lego roboter ------------------------------- | ||
' | ' | ||
Line 73: | Line 99: | ||
# ------- html, js development --------------------------- | # ------- html, js development --------------------------- | ||
' | ' | ||
- | # ------- embedded development --------------------------- | ||
- | ' | ||
- | ' | ||
# ------- formatters ------------------------------------- | # ------- formatters ------------------------------------- | ||
' | ' | ||
Line 83: | Line 106: | ||
for ext in extensions: | for ext in extensions: | ||
result = subprocess.run( | result = subprocess.run( | ||
- | [' | + | [' |
results.append( | results.append( | ||
f' | f' | ||
- | print(f' | + | print(f' |
for result in results: | for result in results: | ||
print(result) | print(result) | ||
</ | </ | ||
+ | </ | ||
+ |