Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

running two python script in parallel in pycharm

I have looked at this question but I am not sure I got it correctly or not.

I have opened pycharm and one python script and its running (it's topic modeling).

Also I have another python script in which I opened in another pycharm in the same server. I also run it.

Now these two program are running in the same server, I should mention that I have not changed any configuration neither server nor pycharm.

Do you think its ok in this way? or one script technically won't run(in terms of progressing I mean it just show its running but practically wont run) until the other script finished?

like image 638
sariii Avatar asked Jul 12 '18 04:07

sariii


People also ask

How do I run a parallel code 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 two python files in parallel?

The simplest solution to run two Python processes concurrently is to run them from a bash file, and tell each process to go into the background with the & shell operator.


1 Answers

Edit Configurations -> Allow parallel run. Done

enter image description here

like image 133
W.Perrin Avatar answered Oct 21 '22 01:10

W.Perrin