Differences
This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
| habrok:examples:vscode_python [2025/05/27 09:17] – fokke | habrok:examples:vscode_python [2026/11/18 15:32] (current) – camarocico | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | ===== Using Python modules in VScode ==== | + | ====== Using Python modules in VScode |
| VScode is available on the cluster in the Web portal or through an ssh connection from your local VScode software. See [[../ | VScode is available on the cluster in the Web portal or through an ssh connection from your local VScode software. See [[../ | ||
| Line 5: | Line 5: | ||
| When using VScode to develop your software on the cluster it is best to make use of virtual environments. | When using VScode to develop your software on the cluster it is best to make use of virtual environments. | ||
| These virtual environments work in the same way as other virtual environments outside of VScode. | These virtual environments work in the same way as other virtual environments outside of VScode. | ||
| - | The best way to handle these is to create the virtual environment in a place where VScode expects it. This is in the '' | + | The best way to handle these is to create the virtual environment in a place where VScode expects it. This is in the '' |
| - | ==== Creating the virtual environment ==== | + | ===== Creating the virtual environment |
| Setting up the virtual environment is best done within the **Terminal** window of VScode. The first step is to load a Python module with the version that you want to use. You can find the available versions using: | Setting up the virtual environment is best done within the **Terminal** window of VScode. The first step is to load a Python module with the version that you want to use. You can find the available versions using: | ||