Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Running two scripts in parallel in Pycharm

Tags:

pycharm

I have two scripts, server.py and client.py.

I want to be able to start them running, in that order, with one action.

How can achieve that in Pycharm? Please note that I want to be able to set breakpoints

like image 987
Mawg says reinstate Monica Avatar asked Jun 13 '17 09:06

Mawg says reinstate Monica


People also ask

Can I run 2 python scripts at the same time PyCharm?

You can even run the same configuration multiple times if it has Allow parallel run enabled. In Terminal Tool Window, open two tabs and run your scripts in each; In Python Console Tool Window, again open two tabs, in each import your code and call the program.

How do I run parallel files in PyCharm?

Allow parallel runSelect Run | Edit Configurations from the main menu or Edit Configurations from the run/debug configuration selector on the toolbar. Choose your configuration from the list. Select the Allow parallel run checkbox and click OK.

How do I run a second file in PyCharm?

Alt + Shift + F10 and then select the script you want to run. After that Shift + F10 will run the last script that has been run.

How to run two PyCharm scripts at the same time?

Second, you don't have to open second PyCharm window to run the second script. You can run both of them from the single one. There are at least two ways: with run configurations or by spawning multiple terminal windows and running scripts from there. Show activity on this post.

How can I set parallel run in PyCharm?

How can achieve that in Pycharm? Please note that I want to be able to set breakpoints Show activity on this post. Run -> Edit Configurations... Show activity on this post. Run -> Edit Configurations... Edit your script configuration Check the "Allow parallel run" checkbox at the top Then just run then normally.

How to run multiple NPM scripts in parallel?

How to run multiple npm scripts in parallel? As there is no straightforward way provided by npm to run multiple scripts in parallel, We can try coming up with a solution in the following way: Create a basic React App project on the Localhost server and at the same time, we want to run the build operation of the project.

How to run multiple scripts at the same time?

Edit your script configuration Check the "Allow parallel run" checkbox at the top Then just run then normally. You can also pin run tab to not be closed Show activity on this post.


1 Answers

Run -> Edit Configurations... Edit your script configuration Check the "Allow parallel run" checkbox at the top

Then just run then normally. You can also pin run tab to not be closed

like image 69
TreantBG Avatar answered Sep 22 '22 15:09

TreantBG