create virtual environment for jupyter notebook anaconda code example
Example 1: how to add virtual environment in jupyter notebook
python -m ipykernel install --user --name=<my_env_name>
Example 2: how i install jupyter notebook in a new conda virtual environment
pip install jupyter notebook