create a virtual environment jupyter lab code example Example: how to add virtual environment in jupyter notebook python -m ipykernel install --user --name=<my_env_name>