Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Release v2.2.7 (Hotfix for v2.2.6)#141

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
minjk-bl merged 15 commits intomainfromrelease
Jul 1, 2022
Merged
Show file tree
Hide file tree
Changes fromall commits
Commits
Show all changes
15 commits
Select commitHold shift + click to select a range
73fa465
Fix bug - checkmodule spells
Jun 29, 2022
8562f05
Fix bug on checking required input tags
Jun 29, 2022
6d9b891
Fix bug on Profiling app which is not checking its required modules
Jun 29, 2022
f22a617
Edit ModelInfo > plot_feature_importances - removed top_count option'…
Jun 29, 2022
2e5313c
Edit Import app's default packages
Jun 29, 2022
afbbfb8
Edit Seaborn app not to auto-import on loading preview, add inner fun…
Jun 29, 2022
5c0a16a
Edit Plotly, WordCloud app not to auto-import on loading preview
Jun 29, 2022
bb93591
Add auto-import on DataSets app
Jun 29, 2022
cedc3f3
Edit vp_seaborn_show_values function code to check isnan for x, y coo…
Jun 29, 2022
e0b9d28
Edit show values, sort option layout and operations
Jun 29, 2022
316eaa1
Edit the order of import codes on Visualization settings to overwrite…
Jun 29, 2022
cf9d8d6
Fix bugs on Chart Style app
Jun 29, 2022
fe98a89
Edit plotly auto-import code
Jun 30, 2022
38bf7d0
Merge pull request #140 from minjk-bl/devops
minjk-blJun 30, 2022
0640fae
deploy visualpython 2.2.7
visualpythonJun 30, 2022
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
52 changes: 33 additions & 19 deletionshtml/m_visualize/seaborn.html
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -114,29 +114,34 @@
<!-- Auto-create -->
</select>
</div>
<divclass="vp-grid-box sb-option">
<label><inputtype="checkbox"id="showValues"class="vp-state"/><span>Show values</span></label>
<inputtype="number"id="showValuesPrecision"class="vp-state"placeholder="Type precision (0 ~ 5)"min="0"max="5"/>
</div>
<divclass="vp-grid-col-p50 sb-option"style="grid-column-start: 1;grid-column-end: 3;">
<divclass="vp-grid-box">
<labelclass="vp-bold">Sort values by
<selectid="sortBy"class="vp-state vp-select"style="width: 75px;height:25px;">
<divclass="vp-grid-box sb-option"style="grid-column-start: 1;grid-column-end: 3;">
<hrstyle="margin:5px;"/>
<labelclass="vp-tab-group-title">Sort</label>
<divclass="vp-grid-col-p50">
<divclass="vp-grid-col-95">
<labelfor="sortType">Order</label>
<selectid="sortType"class="vp-state vp-select m">
<optionvalue="">No sorting</option>
<optionvalue="descending">Sort in descending order</option>
<optionvalue="ascending">Sort in ascending order</option>
</select>
</div>
<divclass="vp-grid-col-95">
<labelfor="sortBy">Sort by</label>
<selectid="sortBy"class="vp-state vp-select m">
<optionvalue="y">y axis</option>
<optionvalue="x">x axis</option>
</select>
</label>
<selectid="sortType"class="vp-state">
<optionvalue="">No sorting</option>
<optionvalue="descending">Sort in descending order</option>
<optionvalue="ascending">Sort in ascending order</option>
</select>
</div>
</div>
<divclass="vp-grid-box">
<labelclass="vp-bold">Sort condition</label>
<inputtype="text"id="sortHue"class="vp-input vp-state"placeholder="Type hue condition"/>
<label><inputtype="checkbox"id="sortHueText"class="vp-state"/><span>Text</span></label>
<divclass="vp-grid-col-95 sb-option">
<labelfor="sortHue">Hue condition</label>
<div>
<inputtype="text"id="sortHue"class="vp-input vp-state"placeholder="Type hue condition"/>
<label><inputtype="checkbox"id="sortHueText"class="vp-state"checked/><span>Text</span></label>
</div>
</div>
<hrstyle="margin:5px;"/>
</div>
</div>
<labelfor="userOption"class="vp-bold">User Option</label>
Expand DownExpand Up@@ -207,7 +212,16 @@
<inputtype="text"id="y_label"class="vp-input vp-state"placeholder="Type Y Label"/>
</div>
</div>

<divclass="vp-grid-box sb-option">
<hrstyle="margin:5px;"/>
<labelclass="vp-tab-group-title">Show values</label>
<label><inputtype="checkbox"id="showValues"class="vp-state"/><span>Show values on the top of bar</span></label>
<divclass="vp-grid-col-95">
<labelfor="showValuesPrecision">Decimal place</label>
<inputtype="number"id="showValuesPrecision"class="vp-state"placeholder="Type decimal places(0~5)"min="0"max="5"/>
</div>
<hrstyle="margin:5px;"/>
</div>
<labelfor="useLegend"class="vp-bold">Legend</label>
<divclass="vp-grid-col-p50">
<selectid="legendPos"class="vp-select vp-state">
Expand Down
14 changes: 11 additions & 3 deletionsjs/com/com_Config.js
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -104,7 +104,14 @@ define([
'%matplotlib inline'
]
},
{ library: 'seaborn', alias:'sns' }
{ library: 'seaborn', alias:'sns' },
{
library: 'plotly.express', alias: 'px',
include: [
'from plotly.offline import init_notebook_mode',
'init_notebook_mode(connected=True)'
]
}
]
}

Expand DownExpand Up@@ -142,7 +149,7 @@ define([
type: 'package'
},
'px': {
code: 'import plotly.express as px',
code: 'import plotly.express as px\nfrom plotly.offline import init_notebook_mode\ninit_notebook_mode(connected=True)',
type: 'package'
},
'WordCloud': {
Expand DownExpand Up@@ -251,6 +258,7 @@ define([
'fileNaviCommand.py',
'pandasCommand.py',
'variableCommand.py',
'visualizationCommand.py',
// 'userCommand.py'
];
let promiseList = [];
Expand DownExpand Up@@ -579,7 +587,7 @@ define([
/**
* Version
*/
Config.version = "2.2.5";
Config.version = "2.2.7";

/**
* Type of mode
Expand Down
2 changes: 1 addition & 1 deletionjs/com/com_Const.js
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -19,7 +19,7 @@ define ([
classConstants{}

Constants.TOOLBAR_BTN_INFO={
HELP:"Visual Python 2.2.5"
HELP:"Visual Python 2.2.7"
,ICON:"vp-main-icon"
,ID:"vpBtnToggle"
,NAME:"toggle-vp"
Expand Down
4 changes: 3 additions & 1 deletionjs/com/component/PopupComponent.js
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -709,7 +709,9 @@ define([
*/
checkRequiredOption() {
let requiredFilled = true;
let requiredTags = $(this.wrapSelector('input[required=true],input[required=required]'));
let requiredTags = $(this.wrapSelector('input[required=true]') + ',' + this.wrapSelector('input[required=required]'));

vpLog.display(VP_LOG_TYPE.DEVELOP, 'checkRequiredOption', this, requiredTags);

if (requiredTags) {
for (let i = 0; i < requiredTags.length; i++) {
Expand Down
26 changes: 19 additions & 7 deletionsjs/m_apps/Import.js
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -29,6 +29,14 @@ define([
, include: [
'%matplotlib inline'
]
},
{ i0: 'seaborn', i1: 'sns', type: 'module'},
{
i0: 'plotly.express', i1: 'px', type: 'module'
, include: [
'from plotly.offline import init_notebook_mode',
'init_notebook_mode(connected=True)'
]
}
],
'machine-learning': [
Expand All@@ -46,7 +54,6 @@ define([
/** Write codes executed before rendering */
this.config.dataview = false;
this.config.sizeLevel = 1;
this.config.checkModules = ['pd'];

let savedData = vpConfig.getDataSimple('', 'vpimport');
// Reset abnormal data
Expand DownExpand Up@@ -243,14 +250,19 @@ define([
// module
sbCode.appendFormat("import {0}{1}", pacI0, ((pacI1 === undefined || pacI1 === "") ? "" : (" as " + pacI1)));
}
}

// Need additional code?
if (pacI0 == 'matplotlib.pyplot' || pacI0 == 'matplotlib') {
sbCode.appendLine();
sbCode.append('%matplotlib inline');
// Need additional code?
if (pacI0 == 'matplotlib.pyplot' || pacI0 == 'matplotlib') {
sbCode.appendLine();
sbCode.append('%matplotlib inline');
}
if (pacI0 == 'plotly.express' || pacI0 == 'plotly') {
sbCode.appendLine();
sbCode.appendLine('from plotly.offline import init_notebook_mode');
sbCode.append('init_notebook_mode(connected=True)');
}
}

importMeta.push({ i0: pacI0, i1: pacI1, type: pacType, checked: pacChecked });
}
this.state.importMeta = importMeta;
Expand Down
6 changes: 4 additions & 2 deletionsjs/m_apps/Profiling.js
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -82,8 +82,10 @@ define([
code.append(saveas);
break;
}
com_interface.insertCell('code',code.toString(),true,'Data Analysis > Profiling');
that.loadReportList();
that.checkAndRunModules(true).then(function(){
com_interface.insertCell('code',code.toString(),true,'Data Analysis > Profiling');
that.loadReportList();
});
});
}

Expand Down
1 change: 1 addition & 0 deletionsjs/m_ml/DataSets.js
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -30,6 +30,7 @@ define([
super._init();
this.config.sizeLevel=2;
this.config.dataview=false;
this.config.checkModules=['pd'];

this.state={
loadType:'load_boston',
Expand Down
2 changes: 1 addition & 1 deletionjs/m_ml/ModelInfo.js
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -438,7 +438,7 @@ define([
options: [
{ name: 'fi_featureData', label: 'Feature Data', component: ['data_select'], var_type: ['DataFrame', 'Series', 'ndarray', 'list', 'dict'], value: 'X_train' },
{ name: 'sort', label: 'Sort data', component: ['bool_checkbox'], value: true, usePair: true },
{ name: 'top_count', label: 'Top count', component: ['input_number'], min: 0,max: 5,usePair: true },
{ name: 'top_count', label: 'Top count', component: ['input_number'], min: 0, usePair: true },
]
}
}
Expand Down
3 changes: 2 additions & 1 deletionjs/m_visualize/Chart.js
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -570,10 +570,11 @@ define([
var fontSize = $(this.wrapSelector('#vp_plFontSize')).val();

code.appendLine('import matplotlib.pyplot as plt');
code.appendFormatLine("plt.rc('figure', figsize=({0}, {1}))", figWidth, figHeight);
code.appendLine('%matplotlib inline');
if (styleName && styleName.length > 0) {
code.appendFormatLine("plt.style.use('{0}')", styleName);
}
code.appendFormatLine("plt.rc('figure', figsize=({0}, {1}))", figWidth, figHeight);
code.appendLine();

code.appendLine('from matplotlib import rcParams');
Expand Down
10 changes: 5 additions & 5 deletionsjs/m_visualize/ChartSetting.js
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -29,11 +29,11 @@ define([
this.config.dataview = false;

this.state = {
figureWidth:12,
figureHeight:8,
figureWidth:'12',
figureHeight:'8',
styleSheet: '',
fontName: '',
fontSize:10,
fontSize:'10',
...this.state
}
}
Expand DownExpand Up@@ -124,7 +124,7 @@ define([
generateImportCode() {
var code = new com_String();
code.appendLine('import matplotlib.pyplot as plt');
code.append('%matplotlib inline');
code.appendLine('%matplotlib inline');
code.appendLine('import seaborn as sns');
return [code.toString()];
}
Expand All@@ -144,10 +144,10 @@ define([
code.appendLine('import matplotlib.pyplot as plt');
code.appendLine('%matplotlib inline');
code.appendLine('import seaborn as sns');
code.appendFormatLine("plt.rc('figure', figsize=({0}, {1}))", figureWidth, figureHeight);
if (styleSheet && styleSheet.length > 0) {
code.appendFormatLine("plt.style.use('{0}')", styleSheet);
}
code.appendFormatLine("plt.rc('figure', figsize=({0}, {1}))", figureWidth, figureHeight);
code.appendLine();

code.appendLine('from matplotlib import rcParams');
Expand Down
5 changes: 5 additions & 0 deletionsjs/m_visualize/Plotly.js
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -549,6 +549,11 @@ define([
// let height = $(this.wrapSelector('#vp_ptPreview')).height();
// console.log(width, height);
etcOptionCode.push(com_util.formatString('width={0}, height={1}',width,height));

// no auto-import for preview
this.config.checkModules=[];
}else{
this.config.checkModules=['px'];
}

letgeneratedCode=com_generator.vp_codeGenerator(this,config,this.state
Expand Down
Loading

[8]ページ先頭

©2009-2025 Movatter.jp