Skip to content

Instantly share code, notes, and snippets.

@izikeros
Created February 25, 2020 07:40
Show Gist options
  • Save izikeros/3c5bb66566f78a5289390bfea5563bd5 to your computer and use it in GitHub Desktop.
Save izikeros/3c5bb66566f78a5289390bfea5563bd5 to your computer and use it in GitHub Desktop.
Set log level in jupyter notebook calling other modules.
# (source: https://stackoverflow.com/a/35327111/3247880)
# Put this code at the beginning of the notebook
import logging
logger = logging.getLogger()
assert len(logger.handlers) == 1
handler = logger.handlers[0]
handler.setLevel(logging.DEBUG)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment