Repository for code related to exercises in Design of Communicating Systems.
- Clone the repo:
git clone https://github.com/dcs-team4/dcs-exercises.git
- Navigate to the right folder:
cd dcs-exercises
- Verify your Python installation:
python3 --version
Output should be Python 3.x.x
(ideally 3.10+). If not, get the latest version here: https://www.python.org/downloads/
- Install project dependencies:
pip install -r requirements.txt
- Enable Jupyter widgets:
jupyter nbextension enable --py widgetsnbextension
Open the notebooks (.ipynb
files) in VSCode, or your favorite Jupyter notebook editor.
-
Install VSCode
https://code.visualstudio.com/ -
Install Python extension (includes Jupyter)
https://marketplace.visualstudio.com/items?itemName=ms-python.python -
Install Live Share extension
https://marketplace.visualstudio.com/items?itemName=MS-vsliveshare.vsliveshare -
Log in to VSCode with GitHub (bottom left corner of VSCode window)
Now you should be able to open Jupyter notebooks and run code within them.
To check that it works:
- Go to
File -> Open Folder
in VSCode - Find and open the
dcs-exercises
folder from earlier (should be in[your-username]/dcs-exercises
) - Click one of the
.ipynb
files under one of theunitX
folders now on the left in VSCode - Try running one of the code blocks in the notebook