Calcul Québec training : Introduction to Programming with Python - PYT101
The content of this workshop is based on Software Carpentries - Programming with Python
- Create a virtual environment
python -m venv venv-pyt101
- Activate the environment
source venv-pyt101/bin/activate
- Install requirements
pip install -r requirements.txt # or requirements-dev.txt if developping
- Run jupyterlab in your browser
jupyter lab --ip=127.0.0.1
pip install -r requirements-dev.txt
Synchronize solutions markdown to their associated notebooks
jupytext --sync solutions/*.md
Create executed HTML|ipynb solution files for the instructor
jupyter nbconvert --to {html|notebook} --execute solutions/*.ipynb
Or overwrite in-place notebooks since their content origin from the markdown
jupyter nbconvert --to notebook --inplace --execute solutions/*.ipynb
Empty all solutions notebooks and output in current directory
python scripts/participant_empty.py solutions/*.ipynb -o .