I'm trying to get started with Shiny for Python but I'm struggling with the VScode extension. It worked straight away on another computer earlier, presumably because it only had fewer Python environments, but I can't get it to work here.
I'm following the steps in the installation docs:
mkdir myapp
cd myapp
python3 -m venv venv
source venv/bin/activate
pip install --upgrade pip wheel
pip install shiny
shiny create .
shiny run --reload
All good so far. Now, with VScode, if I click the run button, I get an error:
(venv) (base) baptiste@Baptistes-MBP-3 Bapp % /usr/bin/python3 -m shiny run --port 59389 --reload "/Users/baptiste/Documents/my_app/app.py"
/Applications/Xcode.app/Contents/Developer/usr/bin/python3: No module named shiny
Any idea where I can configure it to use the local venv and the corresponding python interpreter?