Tutorial 01

Miniforge

Install Miniforge

Installation

Suggested to use “conda” as target directory.

Conda configuration:

conda config --set auto_activate_base false

Create the pta enviroment:

conda create -n pta python=3.11

Activate the enviroment and install the Jupyter package

conda activate pta
conda install jupyter

Python Interpreter

Open a console/terminal:

> python -V
> python

Enter some Python code:

import sys
print(f"Python version: {sys.version}")

Control-D to exit


VS Code

Install VS Code

Install the following VS Code extension:

Create a Python file (e.g. demo.py) with the same codes as above and run the Python script.