Issue: Redirect output to an IOBuffer

question

#1

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?


#2

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

bottomline: