Hi Bruce
This video tutorial by Paul McWhorter shows how to run vpython from Visual Studio Code.
I am not a user of Visual Studio Code but I was able to get vscode to run a vpython program from a virtual environment. The first thing to check is that you can launch a vpython program from the command line in your virtual environment without using Visual Studio Code. Just open a terminal, activate the environment that you have vpython installed in and run run the program from the command line.
python mydemo.py
where mydemo.py contains your vpython program. In my case it contained:
from vpython import *
import sys
print(sys.version)
box()
Check that this works first. If this works then you know that vpython works in your virtual environment. Then try launching Visual Studio Code from the terminal window from this virtual environment with the command
code
This will launch Visual Studio code from that environment and then try running the program from Visual Studio Code. This worked for me but I was using Anaconda Python to create the virtual environment rather than the default python..
John