Python initiation training by py-edu-fr#
This is the website for a training to learn Python programming produced by the py-edu-fr project within the CNRS Python working group.
This site has been prepared for training sessions that will be organized in 2025 and 2026 in Université Grenoble Alpes. However, it has been thought to be reusable (fully or partly). To learn more on this aspect, read the presentation of the py-edu-fr project.
Our goals with this training#
We would like this training to be
up-to-date in 2025,
adapted for French speakers,
adapted for Windows, macOS and Linux users,
adapted for face-to-face courses.
Prerequisites#
This training is meant for people with some experience in programming. Participants need to be able to use variables and loops in at least one language. In contrast, no prior knowledge of Python is required.
How to use this training#
This training has been designed considering that participants will be able to bring and use their own computer during the session.
Participants must prepare their computers before the training session by following the instructions given in the chapter Preliminaries.
Note for teachers
Do not forget to send the instructions a few days before the training.
A few minutes can be used at the beginning of the session to check if participants were able to follow the instructions.
The training session starts with a short presentation of the training, the teachers, and the participants.
We then start with Preliminaries using Jupyter Lite (i.e., coding in the browser without installing anything on the local computer).
For the following parts, it is necessary to clone the repository of the training (as explained in the Preliminaries chapter) and create/activate the main virtual environment of this training. With the tools installed following the Preliminaries chapter, one should use in a terminal:
# the clone should be done only once
hg clone https://foss.heptapod.net/py-edu-fr/py-edu-fr
cd py-edu-fr
pdm sync
# on Windows (PowerShell)
.venv/Scripts/activate.ps1
# on Unix
. .venv/bin/activate
Participants should follow the different pages of this site in order and work on the exercises and practicals using Jupyter Lab and other editors (we propose Spyder and Visual Studio Code) as explained in the pages and by the teachers during the session.