How do I silence W&B info messages?

To suppress log messages in your notebook such as this:

INFO SenderThread:11484 [sender.py:finish():979]

Set the log level to logging.ERROR to only show errors, suppressing output of info-level log output.

import logging

logger = logging.getLogger("wandb")
logger.setLevel(logging.ERROR)

To turn off log output completely, set the WANDB_SILENT environment variable. This must occur in a notebook cell before running wandb.login:

%env WANDB_SILENT=True
import os

os.environ["WANDB_SILENT"] = "True"

Last modified February 4, 2025: b42d7fe