You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
import logging
import daiquiri
daiquiri.setup(level=logging.INFO, outputs=[daiquiri.output.STDOUT])
logger = daiquiri.getLogger(name)
logger.info("It works and log to stderr by default with color!")
in Jupyter notebook. The STDOUT is needed since Jupyter uses a red background for stderr.
It works correctly in consoles, but uses no color in Jupyter.
I noticed in some other terminal color libraries that enforcing TTY is important. For example
Daiquiri would also be great to use in Jupyter.
Unfortunately, it seems in Jupyter one usually has to enforce TTY mode in order to make color work.
There does not seem to be an option for that in daiquiri?
The text was updated successfully, but these errors were encountered: