Skip to content

Commit

Permalink
Fix color in windows log console with colorama (#1397)
Browse files Browse the repository at this point in the history
  • Loading branch information
hansepac authored Feb 16, 2024
1 parent 7d3264d commit 95d3b96
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions jupyter_server/serverapp.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,14 @@
if not sys.platform.startswith("win"):
from tornado.netutil import bind_unix_socket

if sys.platform.startswith("win"):
try:
import colorama

colorama.init()
except ImportError:
pass

from traitlets import (
Any,
Bool,
Expand Down

0 comments on commit 95d3b96

Please sign in to comment.