Python

An Overview over the different Python Versions available on our System

Description

Python is a powerful programming and scripting language. Its standard library already covers a wide range of tools and facilities. In addition, many third-party software packages created for different purposes are available for Python.

Python Versions and Module Files

We provide several Anaconda Python installations.

Emmy:

  • Python version 2.7.16 (from Anaconda 2019.03): module load anaconda2/2019.03
  • Python version 3.7.3 (from Anaconda 2019.03): module load anaconda3/2019.03
  • Python version 3.8.5 (from Anaconda 2020.11): module load anaconda3/2020.11

Lise:

  • Python version 2.7.16 (from Anaconda 2019.10): module load anaconda2/2019.10
  • Python version 3.7.4 (from Anaconda 2019.10): module load anaconda3/2019.10
Note

Even when none of the Python modules is loaded, Python can still be invoked. In this case, version 2.7.5 of Python is used which is available as part of the operating system on all nodes. This version, however, is not actively maintained – no version updates, no extensions.

Many packages and Python extensions are available in Anaconda base installations by default. Some packages have been added manually upon user request, please see the table in the next section.

Installed Python Packages

Note

The list of default packages for the python distributions can be found in the anaconda website: Packages For a complete list of packages currently installed, please load one of the Anaconda modules, and then execute conda list.

Packageanaconda2/2019.03anaconda3/2019.03anaconda3/2020.11
NumPy1.16.21.16.21.19.2
nose1.3.71.3.71.3.7
SciPy1.2.11.2.11.5.2
matplotlib2.2.33.0.33.3.2
SIP4.19.84.19.84.19.13
PyQt5.9.25.9.25.9.2
pycairo1.18.01.18.11.19.1
PyGTK2.24.0
wxPython4.0.44.0.4
PyYAML/LibYAML5.1/0.1.75.1/0.1.75.3.1
lxml4.3.24.3.24.6.1
docutils0.140.140.16
Sphinx1.8.51.8.53.2.1
iPython5.8.07.4.07.19
SQLite3.27.23.27.23.33.0
VTK6.3.0
netcdf4-python1.4.21.4.21.5.3
basemap1.2.01.2.01.2.0
Mako1.0.91.0.91.1.4
h5py2.9.02.9.02.10
scikit-image0.14.20.14.20.17.2
Cython0.29.60.29.60.29.21
pytest4.3.14.3.16.1.1
pandas0.24.20.24.21.1.3
GDAL2.0.0
Shapely1.6.41.6.51.7.1
yt3.4.13.4.13.6.1
xarray0.11.30.12.10.17.0
datashader0.7.00.7.00.12.1
pigz2.42.42.4
Meson0.51.20.58.0
Ninja1.9.01.10.2
PyVista0.22.4
Scooby0.4.30.5.7
libthoera1.1.1
appdirs1.4.31.4.4
jsoncpp1.8.41.9.4
libogg1.3.21.3.4
libvorbis1.3.51.3.7
vtk8.2.0
Note

SciPy adn NumPy are linked against Intel MKL for performance optimization

Requests for the installation of other Python extensions or Anaconda packages can be sent to our support.

Intel Distribution for Python

The current Anaconda installation contain Intel Distribution for Python(IDP). To initialise the shell and set the conda base environment use the command

source $CONDASH

You can list the available conda environments by the command

conda env list

To activate the IDP environment use the command

conda activate intelpython

To deactivate a conda environment use the command

conda deactivate