Skip to content

Commit 95d3b96

Browse files
authored
Fix color in windows log console with colorama (#1397)
1 parent 7d3264d commit 95d3b96

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

jupyter_server/serverapp.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,14 @@
4545
if not sys.platform.startswith("win"):
4646
from tornado.netutil import bind_unix_socket
4747

48+
if sys.platform.startswith("win"):
49+
try:
50+
import colorama
51+
52+
colorama.init()
53+
except ImportError:
54+
pass
55+
4856
from traitlets import (
4957
Any,
5058
Bool,

0 commit comments

Comments
 (0)