@@ -2393,25 +2393,22 @@ def _md_to_html(self, md_fname, page_type, dir_path, me=None):
2393
2393
for f in os .listdir (dir_path ):
2394
2394
if os .path .exists (os .path .join (dir_path , f , "README.md" )):
2395
2395
old = f'href="{ f } /README.html"'
2396
- new = f"onclick=\" toggleShow('{ f } ');toggleShow('main')\" "
2396
+ new = f"onclick=\" toggleShow('{ f } ');toggleShow('automl-report- main')\" "
2397
2397
content_html = content_html .replace (old , new )
2398
2398
2399
2399
# other links
2400
2400
if me is not None :
2401
2401
old = 'href="../README.html"'
2402
- new = f"onclick=\" toggleShow('{ me } ');toggleShow('main')\" "
2402
+ new = f"onclick=\" toggleShow('{ me } ');toggleShow('automl-report- main')\" "
2403
2403
content_html = content_html .replace (old , new )
2404
2404
2405
2405
beginning = ""
2406
2406
2407
2407
if page_type == "main" :
2408
2408
beginning += """<img src="https://raw.githubusercontent.com/mljar/visual-identity/main/media/mljar_AutomatedML.png" style="height:128px; margin-left: auto;
2409
2409
margin-right: auto;display: block;"/>\n \n """
2410
- # disable EDA
2411
- # if os.path.exists(os.path.join(self._results_path, "EDA")):
2412
- # beginning += "<a onclick=\"toggleShow('EDA');toggleShow('main')\" >Automatic Exploratory Data Analysis Report</a>"
2413
2410
if os .path .exists (os .path .join (self ._results_path , "optuna/README.md" )):
2414
- beginning += "<h2><a onclick=\" toggleShow('optuna');toggleShow('main')\" >» Optuna Params Tuning Report</a></h2>"
2411
+ beginning += "<h2><a onclick=\" toggleShow('optuna');toggleShow('automl-report- main')\" >» Optuna Params Tuning Report</a></h2>"
2415
2412
2416
2413
content_html = beginning + content_html
2417
2414
@@ -2436,8 +2433,8 @@ def _report(self, width=900, height=1200):
2436
2433
body = ""
2437
2434
fname = os .path .join (self ._results_path , "README.md" )
2438
2435
body += (
2439
- '<div id="main">\n '
2440
- + self ._md_to_html (fname , "main" , self ._results_path )
2436
+ '<div id="automl-report- main">\n '
2437
+ + self ._md_to_html (fname , "automl-report- main" , self ._results_path )
2441
2438
+ "\n \n </div>\n \n "
2442
2439
)
2443
2440
0 commit comments