简体   繁体   中英

How to run same Python script two times simultaneously in two different instances?

I want to know that is it possible to run the same script say ABC.py, in two different spyder instances by passing different input values? I know that we can run completely independent projects in multiple spyder instances using spyder --new-instance . But, can we use the same approach when we want to run the same project with different input values in two instances?

Thank you in advance!

( Spyder maintainer here ) Spyder doesn't have a way to be run programmatically in the way you want.

Instead, I recommend you need to create another Python program to run your current script in parallel. For that, you can take a look at Dask .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM