This is a Jupyter Notebook project.
- Run the code
- Stop Jupyter Notebook
- Export notebook as presentation slides
- Deactivate virtual environment
- Remove virtual environment
- Uninstall kernel
Make sure that 'anonymized_project.json' and 'references.json' are in the project directory before taking the following steps.
cd
to the project directory.- Create and activate virtual environment:
python3 -m venv <my_env_name>
source <my_env_name>/bin/activate
- Install requirements in the current environment:
pip3 install -r requirements.txt
- Add current environment to Jupyter:
python3 -m ipykernel install --user --name=<my_env_name>
- Launch Jupyter Notebook:
jupyter-notebook
- Open QM-Homework.ipynb and change kernel to
<my_env_name>
. - Click on 'kernel' and 'run all'.
Ctrl + C
jupyter nbconvert QM-Homework.ipynb --to slides --TemplateExporter.exclude_input=True --post serve
deactivate
sudo rm -rf <my_env_name>
jupyter kernelspec uninstall <my_env_name>