Ipykernel is the Python execution backend for Jupyter. Jupyter Notebook automatically ensures that Ipykernel is available but if I want to use a kernel in a virtual environment, I need to install it manually. (Read)
ipykernel in the project folder where my pipfile is located.
pipenv install ipykernel
2. Start the virtual environment.
This will launch the virtual environment of the project.
3. Install Python kernel with a name
python3 -m ipykernel install --user --name=my-virtualenv-name
In my case, I used
ml-basics for my virtual env name.
You can now see the kernel name
ml-basics in the kernel option.