Framework Setup
After you have finished all previous setup steps, you can finally start exploring the framework.
To do so, open a Terminal window and navigate (using the cd
command) to the folder of the framework that you have cloned from your GitHub repository (remember to use the WSL terminal if you are on Windows). If you have not given a different name as part of the clone
command, the folder should have the same name as your repository.
Initialize Miniconda
Navigate to the directory of the cloned GitHub repository and execute the following:
conda env create -f environment.yml
conda activate computer-networks-lab
Load the project in PyCharm
To load the lab framework in PyCharm, open the project folder via File → Open. For WSL, make sure the project is located under the Linux filesystem and not on a Windows drive.
Navigate to File → Settings → Project <your project name> → Python interpreter. In this menu, select the computer-networks-lab
conda environment.

Loading the Miniconda environment
Whenever opening a new terminal, make sure that the Miniconda environment is enabled. You can check this by examining your shell prompt to include (computer-networks-lab)
as a prefix:
(computer-networks-lab) [daniel@archlinux ~]$ python3 --version
# Should output: Python 3.11.11
If this is not the case, run the following command to activate the conda environment. You might need to do this for every new shell instance you open (every new terminal):
source ~/miniconda3/bin/activate && conda activate computer-networks-lab
Execute
You may now execute any assignment by using the following syntax in the terminal:
python -m <assignment_directory>
For example, to run the chat client assignment, you may run python -m a1_chat_client
.
Last updated