I guess another approach would be to print the value i
to the console and then overwrite it as I go, so that the terminal doesn’t get flooded—e.g. https://discourse.julialang.org/t/how-clear-the-printed-content-in-terminal-and-print-to-the-same-line/