title: Jupyter notebooks in Visual Studio Code does not use the active virtual environment
body: <p>I write Python code in Visual Studio Code and run the program from a terminal in which I have activated a virtual environment, and it works fine.</p>
  <p>However, if I create notebook cells using #%% and run those interactively, the virtual environment is not used. How can I fix this?</p>