silence

astropy.utils.misc.silence()[source] [edit on github]

A context manager that silences sys.stdout and sys.stderr.