Activating the virtual environment from the VS Code terminal works for me. That is rather than opening a separate terminal, open the virtual environment directory from the VS Code terminal and then activate it (source newenv/bin/activate). Then the virtual environment can be selected by clicking on the top right corner virtual environment icon in a jupyter notebook.