0

pycaret

How do I hide info in output cells in Google Colab and only show the result of the code and not the INFO lines?

AlexK
  • 2,855
  • 9
  • 16
  • 27

1 Answers1

0

This is not a Colab issue. What you are seeing is the output from Python's logging module that is produced inside the pycaret library's code. You can turn it off by setting the logging level of the specific library to a level higher than INFO, by running these lines before your pycaret code:

import logging

logging.getLogger("pycaret").setLevel(logging.WARNING)  # see docs for other logging levels

or disabling logging altogether with

logging.disable(logging.CRITICAL)
AlexK
  • 2,855
  • 9
  • 16
  • 27