Tuesday, March 1, 2022

Setting up Jupyter Notebook for python virtual environment

 Create a virtual environment (my-env)

$ python3 -m venv my-env

$ source my-env/bin/activate
(my-env) $

Install ipykernel module

$ pip install ipykernel


Install iPython Kernel for virtual environment 

python -m ipykernel install --user --name=my-env-kernel 


Start jupyter and select my-env-kernel from kernel


No comments:

Post a Comment