I would like to create a Jupyter Notebook in a virtual environment in VS Code. I want to do different kinds of projects. For that, I have tried to create a virtual environment inside VS Code, where I can download the required packages for the project i.e. TensorFlow, PyTorch... And I want to do those projects in a Jupyter Notebook because I also would like to present them.
One way is to install package in venv environment in the terminal.
Firstly, active your venv environment by command like Path\to\venv\active
Then you can use command pip install packageName
to install the python package you want.
Finally, don't forget to choose the python kernel in jupyter.
Another way is to run codes ! pip install packageName
in cells after choosing the python kernel.