halo icon indicating copy to clipboard operation
halo copied to clipboard

BUG FIX: Fix colors in jupyter by only using colorama on windows

Open samsamoa opened this issue 3 years ago • 0 comments

Description of new feature, or changes

Initializing colorama wraps stdout and stderr, and causes color-printing to no longer work in jupyter. Since colorama is only necessary on Windows, this PR makes it so we don't initialize it except on Windows.

image

Checklist

  • [x] Your branch is up-to-date with the base branch
  • [x] You've included at least one test if this is a new feature
  • [x] All tests are passing

Related Issues and Discussions

Here's a related PR on tqdm: https://github.com/tqdm/tqdm/issues/178

samsamoa avatar Nov 04 '21 14:11 samsamoa