The Python Oracle

Running two python file at the same time in visual studio code

This video explains
Running two python file at the same time in visual studio code

--

Become part of the top 3% of the developers by applying to Toptal
https://topt.al/25cXVn

Music by Eric Matyas
https://www.soundimage.org

Track title: Horror Game Menu Looping

Full question
https://stackoverflow.com/questions/6937...

Answer 1 links:
[here]: https://code.visualstudio.com/docs/edito...

Answer 2 links:
[run multiple python scripts at the same time]: https://stackoverflow.com/questions/5196...

--

Content licensed under CC BY-SA
https://meta.stackexchange.com/help/lice...

--

Chapters
00:00 Question
01:09 Accepted answer
01:35 Answer 2
01:58 Answer 3
02:24 Thank you

--

Tags
#python #multithreading #visualstudio-code #binance #binanceapi-client



ACCEPTED ANSWER

Score 3


For some reason i cannot run two python programs at the same time in Visual Studio Code, but i managed to solve this problem with the solution of the first commenter:

I opened terminal and search my .py program. Then i write

python3 xy.py




ANSWER 2

Score 2


You can just create two terminals in visual studio code to run both files (see here). Or you can create a simple shell script which starts both programs (start a program in the background with a '&' at the end of the command line)




ANSWER 3

Score 1


Helpful discussion here: run multiple python scripts at the same time.

Covers the question posted at the title fairly well.

On new window I managed to run the necessary code by typing a command. Run Python File button remains tied too original window.