This is an old revision of the document!
Using Python modules in VScode
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.
The best way to handle these is to create the virtual environment in a place where VScode expects it. This is in the .venv
` folder within your project.
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:
module spider Python
After selecting a version from the list you can load it using:
module load Python/3.11.5-GCCcore-13.2.0