Skip to content

lochhh/QM-Homework

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

QM-Homework

This is a Jupyter Notebook project.

Contents

  1. Run the code
  2. Stop Jupyter Notebook
  3. Export notebook as presentation slides
  4. Deactivate virtual environment
  5. Remove virtual environment
  6. Uninstall kernel

1. Run the code

Make sure that 'anonymized_project.json' and 'references.json' are in the project directory before taking the following steps.

  1. cd to the project directory.
  2. Create and activate virtual environment:
python3 -m venv <my_env_name>
source <my_env_name>/bin/activate
  1. Install requirements in the current environment:
pip3 install -r requirements.txt
  1. Add current environment to Jupyter:
python3 -m ipykernel install --user --name=<my_env_name>
  1. Launch Jupyter Notebook:
jupyter-notebook
  1. Open QM-Homework.ipynb and change kernel to <my_env_name>.
  2. Click on 'kernel' and 'run all'.

2. Stop Jupyter Notebook

Ctrl + C

3. Export notebook as presentation slides

jupyter nbconvert QM-Homework.ipynb --to slides --TemplateExporter.exclude_input=True --post serve

4. Deactivate virtual environment

deactivate

5. Remove virtual environment

sudo rm -rf <my_env_name>

6. Uninstall kernel

jupyter kernelspec uninstall <my_env_name>

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published