Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to run two modules at the same time in IDLE

I am working on a super simple socket program and I have code for the client and code for the server. How do I run both these .py files at the same time to see if they work ?

like image 711
user1086516 Avatar asked Mar 11 '13 00:03

user1086516


People also ask

How do I run multiple files in python IDLE?

There are few simple ways to do it: Write a shell file with `. sh` extension and write sequence of python files you want to run. Do a `chmod a+x example.sh` and run `./example.sh` this will run you sequence of python files — this will work on Mac and Linux.

Can I run 2 python files at the same time?

Yes, you can run multiple python scripts at once and In python, we use multi-threading to run multiple works simultaneously.

How do I make multiple lines IDLE?

Shift + Enter takes you to next line without executing the current line. Save this answer.


1 Answers

You can run multiple instances of IDLE/Python shell at the same time. So open IDLE and run the server code and then open up IDLE again, which will start a separate instance and then run your client code.

like image 177
user1086516 Avatar answered Sep 23 '22 09:09

user1086516