Skip to content
This repository was archived by the owner on Nov 28, 2022. It is now read-only.
This repository was archived by the owner on Nov 28, 2022. It is now read-only.

Does not use nice color in Jupyter #104

@Gerenuk

Description

@Gerenuk
  • logzero version: 1.5.0
  • Python version: 3.6
  • Operating System: Linux

Description

Logzero is really neat and it would be great if one could make full use of it in Jupyter notebook.
Unfortunately it does not recognize the color capability and the output shows no color formatting.

Two things would solve this:

  • easy way to switch to STDOUT (without losing the formatter)
  • enforcing TTY mode since apparently Jupyter notebook/lab can show color but does not announce that

What I Did

Do in Jupyter notebook (conda install notebook; jupyter notebook) or Jupyter lab.

from logzero import logger
logger.error("TEXT")

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions