Home > Mobile >  can I run a shell task in VSCode that uses a specific shell for a python virtualEnv?
can I run a shell task in VSCode that uses a specific shell for a python virtualEnv?

Time:01-16

I'm writing some python to render stuff that I tweak and run a lot, and that runs inside a virtual env. I would like a keyboard command to run a bash script (that launches python) inside the known terminal and virtual env.

I played a bit with setting up a shell script and a custom task, but entering the virtual env is always a bit tricky.

I don't need a debugger or anything complicated, just a way to run the python code and attach a keystroke to it.

enter image description here

  1. Use "Run Python".

I think there is no difference because before your using a keyboard command, you still need to choose the interpreter.

By the way, use jupyter notebook or interactive window will be a good chioce as well.

  • Related