Skip to content

Commit e75001b

Browse files
committed
Use colorama to correct colors in PS
1 parent 0218b31 commit e75001b

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

bayes_opt/util.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
import numpy as np
33
from scipy.stats import norm
44
from scipy.optimize import minimize
5+
from colorama import just_fix_windows_console
56

67

78
def acq_max(ac, gp, y_max, bounds, random_state, constraint=None, n_warmup=10000, n_iter=10):
@@ -295,3 +296,6 @@ def underline(cls, s):
295296
def yellow(cls, s):
296297
"""Wrap text in yellow."""
297298
return cls._wrap_colour(s, cls.YELLOW)
299+
300+
301+
just_fix_windows_console()

0 commit comments

Comments
 (0)