Use Suppressor.jl or roll your own solution with redirect_stdout. Depending on how/when you print you might also be able to supply your own output stream (typically an IOBuffer) directly in the print function call.
1 Like