Relative Content

Tag Archive for pythonpython-3.xmultiprocessingpopenpsutil

Popening a gnome-terminal in python immediately appears as a zombie

For background I am working on a script to train multiple pytorch models. I have a training script that I want to be able to run as a sub process in a gnome terminal. The main reason for this is so I can keep an eye on the training progress. In cases where I might have multiple GPUs I would like to run my training script multiple times in separate windows. To accomplish this I have been using popen. The following code works to open a new terminal window and start the training script