Introduction
Want to see this session as a video?
To see this session as a video, view this YouTube video.
For teachers: Learning outcomes for this day
You can find and load a Python package modules
You can determine if a Python package is installed
You can install Python packages
You can work with isolated environments like conda or venv
You can use the compute nodes interactively
you can check that you are in an interactive session
You can use a Python IDE
Learning outcomes of this session
Learners have read what they will learn
Learners can find how to download and extract the exercises
Learners understand how this day is organized
Learners can find their NAISS project
For teachers: Lesson plan
Prior questions: - What is Pyton?
Warning
Alvis, Tetralith and Dardel are all phased out (in this order) and will be replaced by Arrhenius
More info in the New system Arrhenius page
Why is this course important?
Python, according to the TIOBE index, is one of the most used programming languages used today.
What is Python again?
Python …
is a high-level programming language.
is a general-purpose programming language.
emphasizes code readability
uses indentation to indicate structure
is dynamically type-checked
supports multiple programming paradigms
has a comprehensive standard library
has thousands of packages (pieces of re-usable code)
has a forum
Running Python on an HPC cluster allows scientists to run their code that needs either
massive computation,
massive storage space, and/or
storage of sensitive data.
Exercises
Exercise 1: add your HPC cluster to your name
Change your Zoom name, to include your HPC cluster and favorite programming language, e.g. make Sven into Sven [Alvis].
You can do so by right-click on the video of yourself, then click ‘Rename’ to change your Zoom name.
Exercise 2: Q/A and the learning outcomes of today
The goal of this exercise is to find out where to ask questions and what you will learn today.
- Go to this form
and fill it in
For teachers: What is in that form
With this exercise, we’ll discover what we’ll learn today.
Give your confidence levels of the following statements, using this scale:
0: I don’t know even what this is about …?
1: I have no confidence I can do this
2: I have low confidence I can do this
3: I have some confidence I can do this
4: I have good confidence I can do this
5: I absolutely can do this!
Give your confidence levels of the following statements below:
I can find and load a Python package modules
I can determine if a Python package is installed
I can install Python packages
I can work with isolated environments like conda or venv
I can use the compute nodes interactively
I can check that I am in an interactive session
I can use a Python IDE
Exercise 3: downloading and extracting the exercises
The goal of this exercise is to download a file on your favorite HPC cluster and extract the exercises.
Go to Use the tarball with exercises and do the procedure.
Done?
When done, go to the next session and read up on it.
You can easily navigate there by pressing the ‘Next’ arrow at the bottom of this page, at the right-hand side
(optional) Exercise 4: where is what?
Explore the website of the course. Where can you find the things below?
The schedule
How to use a text editor
The evaluation of this day
The NAISS project overview
The Arrhenius page