The package ProgressMeter.jl defines a "printover" function
<https://github.com/timholy/ProgressMeter.jl/blob/b6c161870ba1ee29b04143237e8621bb23d24afd/src/ProgressMeter.jl#L114>
which
does this nicely in both the REPL and IJulia. Looks like it just goes to
the beginning of the line, prints, then clears the rest of the line.
Scott
On Monday, 14 September 2015 15:46:36 UTC+1, Andrew Gibb wrote:
>
> Hi,
>
> I have some loops I'd like to observe/debug by seeing the parameters
> change. In the REPL I can do
> print(" $p1 $p2 \r")
> flush(STDOUT)
> and have my parameters updating on a line.
>
> This doesn't seem to work in IJulia. When I try it, there is no output. I
> guess this is because this isn't STDOUT, or something like that.
>
> Does anyone know of a nice way to do this?
>
> Thanks
>
> Andy
>