Use nohup mypythonprog &
, and you can close the terminal window without disrupting the process. You can also run exit
if you are running in the cloud and don't want to leave a hanging shell process.
Save the program with a .pyw
extension and now it will open with pythonw.exe
. No shell window.
For example, if you have foo.py
, you need to rename it to foo.pyw
.