/qiskit-sandbox

Primary LanguageJupyter NotebookMIT LicenseMIT

qiskit-sandbox

Adding Virtual Environment in Jupyter Notebook

The virtual environment in Python is separate from Jupyter Notebooks. A few things are required before your virtual environment can be used in the Jupyter Notebook. These quick instructions are taken from Creating and Using Virtual Environment on Jupyter Notebook with Python

  1. Activate virtual environment
pip install --user ipykernel
  1. Add kernel
python -m ipykernel install --user --name=myenv

Now the venv kernel is set up and ready to be used in the Jupyter Notebook.

To remove the virtual environment from Jupyter execute

jupyter kernelspec uninstall myenv

and confirm to remove the kernel.