Issue: Redirect output to an IOBuffer

I found https://github.com/JuliaLang/julia/issues/12711 however that seems to be outdated… nothing works for me

what is the current recommended way to capture stdout to a variable?
E.g. by using redirect_stdout in combination with something similar to IOBuffer?

duplicate of Capturing available data written to redirected STDOUT and/or STDERR

bottomline:

1 Like