I am trying to run parallel processes where at the start of each process, it would print start, and then print done when that process finishes. For example
def process(i):
print('starting process number %s' %i)
... do something ...
print('finished process number %s' %i)
return
As you may expect, I can not just delete the previous line above whenever it finishes a process since this is a parallel job and multiple starting statments are printed before a single finished statment is done.
There is any way I can delete SPECIFIC strings of texts from the terminal so in the end I will be left with a terminal full of "finished" statments?
I am using Jupyter Interactive notebook on Vscode (which may or may not matter)
Thanks!