I am using Jupyter Notebook on Windows. I'm trying to override previous prints, but I always get the remaining parts of previous prints:
print("Loooooooooooooooooooong String",end="\r",flush=True)
print("Short String",end="\r",flush=True)
Output: Short Stringooooooooong String
I have tried os.system('clear') and os.system('cls'), but it does not seem to make a difference.