Issue
I am creating virtual environments in Python using virtualenv
, with the command
virtualenv env_name
and activating in the Linux terminal using source env_name/bin/activate
.
But the virtual environment I created is not automatically visible in the jupyter notebook
kernels. What should I do to make these environments access through Jupyter notebook?
Solution
The answer is quite trivial only.
We just need to add one more line in command for adding the kernel into the python. Say, I'm creating a new environment av
creating environment
virtualenv av
adding the kernel to ipython
python3 -m ipykernel install --user --name=av
This will give an output
Installed kernelspec av in /Users/sreekiran/Library/Jupyter/kernels/av
And voila!
I got the solution thanks to this blog.
Answered By - Sreekiran A R Answer Checked By - Mildred Charles (WPSolving Admin)