Skip to content

Commit 8140976

Browse files
authored
Merge pull request #244 from minjk-bl/devops
Devops for 2.5.0
2 parents 1134d44 + a7e7328 commit 8140976

32 files changed

Lines changed: 623 additions & 192 deletions

visualpython/css/component/popupComponent.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -525,7 +525,7 @@
525525
height: 25px;
526526
}
527527
.vp-popup-frame .vp-accordian-box {
528-
padding: 0px 15px 15px 0px;
528+
padding: 0px 15px 0px 0px;
529529
}
530530

531531
/* resizable handler */

visualpython/css/m_apps/frame.css

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -145,6 +145,7 @@
145145
top: 0;
146146
background-color: var(--vp-background-color);
147147
border-bottom: 1px solid var(--vp-border-gray-color);
148+
border-right: 1px solid var(--vp-border-gray-color);
148149

149150
text-align: right;
150151
text-overflow: ellipsis;
@@ -168,6 +169,10 @@
168169
/* background: var(--vp-light-gray-color); */
169170
/* background: rgba(66, 165, 245, 0.2); */
170171
}
172+
.vp-fe-table-column-isnumeric {
173+
float: left;
174+
margin-right: 5px;
175+
}
171176

172177
/* Row Hover */
173178
.vp-fe-table tbody tr:hover {
@@ -302,6 +307,18 @@
302307
float: right;
303308
display: inline-block;
304309
}
310+
/* to datetime */
311+
.vp-inner-popup-todt-addcol-content {
312+
display: grid;
313+
row-gap: 5px;
314+
max-height: 105px;
315+
}
316+
.vp-inner-popup-todt-addcol-head,
317+
.vp-inner-popup-todt-addcol-item {
318+
display: grid;
319+
grid-template-columns: 160px 160px auto;
320+
column-gap: 5px;
321+
}
305322

306323
/* UDF Editor - CodeMirror */
307324
.vp-fr-subset-box {

visualpython/css/m_visualize/seaborn.css

Lines changed: 24 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -47,17 +47,28 @@
4747
height: 100%;
4848
}
4949
.vp-tab-page-box.figure {
50-
height: calc(100% - 30px);
50+
height: 100%;
5151
align-content: baseline;
5252
grid-template-rows: 1fr;
53+
overflow: hidden;
54+
}
55+
.vp-tab-page-box.figure > .vp-tab-page {
56+
overflow: auto;
5357
}
5458
.vp-tab-page-box.plot {
55-
height: calc(100% - 30px);
56-
min-height: 352px;
59+
/* height: calc(100% - 30px);
60+
min-height: 352px; */
5761
align-content: baseline;
62+
height: 100%;
63+
max-height: 100%;
64+
overflow: scroll;
65+
padding: 15px 15px 0px 15px;
5866
}
5967
.vp-chart-plot-box {
6068
height: 100%;
69+
display: grid;
70+
grid-template-rows: 30px calc(100% - 30px);
71+
overflow: auto;
6172
}
6273
.vp-chart-body {
6374
display: grid;
@@ -75,6 +86,14 @@
7586
.vp-chart-left-box,
7687
.vp-chart-right-box {
7788
height: 100%;
89+
display: grid;
90+
grid-template-rows: 30px calc(100% - 30px);
91+
}
92+
.vp-chart-left-box {
93+
overflow: auto;
94+
}
95+
.vp-chart-right-box {
96+
overflow: hidden;
7897
}
7998
.vp-chart-preview-title {
8099
line-height: 30px;
@@ -86,7 +105,8 @@
86105
.vp-chart-preview-box {
87106
min-height: 352px;
88107
width: 100%;
89-
height: calc(100% - 30px);
108+
/* height: calc(100% - 30px); */
109+
height: 100%;
90110
}
91111
.vp-chart-preview-content:empty::after {
92112
content: 'No preview image';

visualpython/data/m_ml/mlLibrary.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -175,11 +175,12 @@ define([
175175
name: 'SMOTE',
176176
install: '!pip install imblearn',
177177
import: 'from imblearn.over_sampling import SMOTE',
178-
code: 'SMOTE(${random_state}${k_neighbors}${etc})',
178+
code: 'SMOTE(${random_state}${k_neighbors}${sampling_strategy}${etc})',
179179
returnType: 'SMOTE',
180180
options: [
181181
{ name: 'random_state', component: ['input_number'], placeholder: '123', usePair: true },
182-
{ name: 'k_neighbors', component: ['input_number'], default: 5, usePair: true }
182+
{ name: 'k_neighbors', component: ['input_number'], default: 5, usePair: true },
183+
{ name: 'sampling_strategy', component: ['input'], placeholder: "'auto'", usePair: true }
183184
]
184185
},
185186
/** Data Preparation - Scaling */

visualpython/data/m_visualize/seabornLibrary.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,13 +148,14 @@ define([
148148
},
149149
'barplot': {
150150
name: 'Bar Plot',
151-
code: '${allocateTo} = sns.barplot(${data}${x}${y}${hue}${etc})',
151+
code: '${allocateTo} = sns.barplot(${data}${x}${y}${hue}${orient}${etc})',
152152
description: 'Show point estimates and confidence intervals as rectangular bars.',
153153
options: [
154154
{ name: 'data', component: ['var_select'], var_type: ['DataFrame', 'Series', 'list'], usePair: true },
155155
{ name: 'x', component: ['col_select'], usePair: true },
156156
{ name: 'y', component: ['col_select'], usePair: true },
157157
{ name: 'hue', component: ['col_select'], usePair: true },
158+
{ name: 'orient', component: ['option_select'], usePair: true },
158159
{ name: 'allocateTo', label: 'Allocate To', component: ['input'], usePair: true }
159160
]
160161
},

visualpython/html/component/fileNavigation.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
-->
1111
<!-- use body tag to strip comments out on requirejs/text plugin -->
1212
<body>
13-
<div id="vp_fileNavigation">
13+
<div id="vp_fileNavigation" class="vp-filenavigation-base">
1414
<div class='fileNavigationPage-container center-1rem-gray' >
1515
<div class="fileNavigationPage-sidebar">
1616
<!-- Jupyter Notebook -->

visualpython/html/m_ml/fitPredict.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
</div>
3939
<div class="vp-grid-border-box">
4040
<div class="vp-multilang vp-ins-select-title">Options</div>
41-
<div class="vp-ins-parameter-box vp-grid-col-95">
41+
<div class="vp-ins-parameter-box vp-grid-col-130">
4242

4343
</div>
4444
</div>

visualpython/html/m_ml/modelInfo.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
</div>
3939
<div class="vp-grid-border-box">
4040
<div class="vp-multilang vp-ins-select-title">Options</div>
41-
<div class="vp-ins-parameter-box vp-grid-col-95">
41+
<div class="vp-ins-parameter-box vp-grid-col-130">
4242

4343
</div>
4444
</div>

visualpython/html/m_stats/probDist.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@
2020
<div class="vp-grid-col-160">
2121
<label for="action" class="vp-orange-text">Action</label>
2222
<select id="action" class="vp-select l">
23-
<option value="random-number">Generate random numbers</option>
24-
<option value="distribution-plot">Show distribution plot</option>
23+
<option class="vp-pd-display-option dist cont" value="random-number">Generate random numbers</option>
24+
<option class="vp-pd-display-option dist cont dist-plot" value="distribution-plot">Show distribution plot</option>
2525
<option class="vp-pd-display-option cont" value="stats-to-pvalue">Statistics to P-value</option>
2626
<option class="vp-pd-display-option cont" value="pvalue-to-stats">P-value to Statistics</option>
2727
</select>

visualpython/html/m_visualize/seaborn.html

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,14 @@
100100
<label for="bins" class="vp-bold">Bins</label>
101101
<input type="number" class="vp-input vp-state" id="bins" placeholder="Type bins" step="5" min="0" />
102102
</div>
103+
<div class="vp-grid-box sb-option">
104+
<label for="orient" class="vp-bold">Orient</label>
105+
<select id="orient" class="vp-select vp-state">
106+
<option value="">Select option...</option>
107+
<option value="'v'">Vertical</option>
108+
<option value="'h'">Horizontal</option>
109+
</select>
110+
</div>
103111
<div class="vp-grid-box sb-option">
104112
<label for="kde" class="vp-bold">Kde</label>
105113
<select id="kde" class="vp-select vp-state">

0 commit comments

Comments
 (0)