Skip to content

Commit 513ac4d

Browse files
author
minjk-bl
committed
Edit Sweetviz to show eda result as an output to cell
1 parent c69b847 commit 513ac4d

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

visualpython/html/m_apps/sweetviz.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,8 @@
2727
<input type="text" id="vp_pfPath" class="vp-input vp-sv-input" placeholder="SWEETVIZ_REPORT.html">
2828
<div class="vp-file-browser-button" id="vp_pfPathButton" data-parent="vp_pfPath"></div>
2929
</div>
30-
<label for="vp_pfOpenBrowser">Open browser</label>
31-
<label><input type="checkbox" id="vp_pfOpenBrowser" class="vp-input vp-sv-input" checked><span></span></label>
30+
<!-- <label for="vp_pfOpenBrowser">Open browser</label>
31+
<label><input type="checkbox" id="vp_pfOpenBrowser" class="vp-input vp-sv-input" checked><span></span></label> -->
3232
<label for="vp_pfTitle">Report Title</label>
3333
<div>
3434
<input type="text" id="vp_pfTitle" class="vp-input vp-sv-input" placeholder="Title name">

visualpython/js/m_apps/Sweetviz.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ define([
100100
}
101101
var title = $(that.wrapSelector('#vp_pfTitle')).val();
102102
var filePath = $(that.wrapSelector('#vp_pfPath')).val();
103-
var openBrowser = $(that.wrapSelector('#vp_pfOpenBrowser')).prop('checked');
103+
// var openBrowser = $(that.wrapSelector('#vp_pfOpenBrowser')).prop('checked');
104104
var code = new com_String();
105105
switch(parseInt(type)) {
106106
case PROFILE_TYPE.GENERATE:
@@ -110,14 +110,14 @@ define([
110110
} else {
111111
code.appendFormatLine("{0} = sweetviz.analyze({1})", saveas, df);
112112
}
113-
// show html
114-
code.appendFormat("{0}.show_html(", saveas);
113+
// show notebook
114+
code.appendFormat("{0}.show_notebook(", saveas);
115115
if (filePath && filePath != '') {
116116
code.appendFormat("filepath='{0}'", filePath);
117117
}
118-
if (openBrowser === false) {
119-
code.append(", open_browser=False");
120-
}
118+
// if (openBrowser === false) {
119+
// code.append(", open_browser=False");
120+
// }
121121
code.appendLine(')');
122122
code.append(saveas);
123123
break;

0 commit comments

Comments
 (0)