47
47
from supervised .utils .metric import Metric , UserDefinedEvalMetric
48
48
from supervised .utils .utils import dump_data , load_data
49
49
50
- try :
51
- import matplotlib .font_manager as font_manager
52
-
53
- # Get a list of all font families available on the system
54
- font_families = font_manager .findSystemFonts ()
55
-
56
- # Load the font file for the first font family in the list and get the name of the first font family
57
- REPORT_FONT = font_manager .FontProperties (fname = font_families [0 ]).get_name ()
58
- except Exception :
59
- REPORT_FONT = "Arial"
60
-
61
50
logger = logging .getLogger (__name__ )
62
51
logger .setLevel (LOG_LEVEL )
63
52
@@ -2281,7 +2270,7 @@ def from_json(self, json_data):
2281
2270
.styled-table {{
2282
2271
border-collapse: collapse;
2283
2272
font-size: 0.9em;
2284
- font-family:Courier New;
2273
+ font-family: Courier New;
2285
2274
}}
2286
2275
2287
2276
.styled-table td, .styled-table th {{
@@ -2302,8 +2291,7 @@ def from_json(self, json_data):
2302
2291
}}
2303
2292
2304
2293
body {{
2305
- font-family: { REPORT_FONT } ;
2306
- font-size: 1.0em;
2294
+ font-family: ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
2307
2295
background-color: rgba(236, 243, 249, 0.15);
2308
2296
}}
2309
2297
@@ -2404,7 +2392,7 @@ def _md_to_html(self, md_fname, page_type, dir_path, me=None):
2404
2392
2405
2393
beginning = ""
2406
2394
2407
- if page_type == "main" :
2395
+ if page_type == "automl-report- main" :
2408
2396
beginning += """<img src="https://raw.githubusercontent.com/mljar/visual-identity/main/media/mljar_AutomatedML.png" style="height:128px; margin-left: auto;
2409
2397
margin-right: auto;display: block;"/>\n \n """
2410
2398
if os .path .exists (os .path .join (self ._results_path , "optuna/README.md" )):
0 commit comments