acidbase.quietly

acidbase.quietly() Generator[None]

Suppress console output and warnings within a block.

Redirects sys.stdout and sys.stderr to null and suppresses all Python warnings. Matches R’s quietly() context manager.

Yields:

None

Examples

>>> import sys
>>> with quietly():
...     print("this is suppressed")
>>> # nothing printed