I use Python 3.6 and start a process in my script (VTK Visualization). Until I close the visualization window the command line is blocked which I want to change. I read something about multiprocessing and threading, but I'm not sure which is the right approach.
This is what I want to achieve and my ideas:
- start two processes (visualization window and a loop for inputs)
- with exec(input) the inputs are written into my script
- after that the visualization window is updated
I am thankful for any advice on which method could be suitable for my intend!
Edit: I tried threading and started both threads, but still the command line was blocked until I closed the window and just opened up again after typing in an input.. Is there anyone who achieved something similar before?