Skip to content

Commit a714ba6

Browse files
authored
Merge pull request #89 from visualpython/release
Release v1.1.10
2 parents 9207cbc + cd9c95e commit a714ba6

20 files changed

Lines changed: 54 additions & 27 deletions

.gitignore

Lines changed: 0 additions & 3 deletions
This file was deleted.

bin/visualpy

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ f_main() {
7575
#=============================================================================
7676
f_install() {
7777
RES=`f_check_extension`
78-
# 1 = Jupyterr Extension is not actived
78+
# 1 = Jupyter Extension is not actived
7979
# 2 = visualpython does not exist
8080
# 3 = visualpython exists
8181

@@ -104,7 +104,7 @@ f_install() {
104104
#=============================================================================
105105
f_uninstall() {
106106
RES=`f_check_extension`
107-
# 1 = Jupyterr Extension is not actived
107+
# 1 = Jupyter Extension is not actived
108108
# 2 = visualpython does not exist
109109
# 3 = visualpython exists
110110

@@ -234,7 +234,7 @@ f_remove_files() {
234234

235235
#=============================================================================
236236
# Check Visual Python files
237-
# 1 = Jupyterr Extension is not actived
237+
# 1 = Jupyter Extension is not actived
238238
# 2 = visualpython does not exist
239239
# 3 = visualpython exists
240240
#=============================================================================
@@ -266,7 +266,7 @@ f_get_string_pipshow() {
266266
f_get_extension_path() {
267267
RESULT="EMPTY"
268268
if which conda-env > /dev/null 2>&1; then
269-
RESULT=`conda-env list | grep "*" | awk -F'*' '{print $2}'|tr -d ' '`/share/jupyter/nbextension
269+
RESULT=`conda-env list | grep "*" | awk -F'*' '{print $2}'|tr -d ' '`/share/jupyter/nbextensions
270270
else
271271
RESULT=`jupyter --data-dir`/nbextensions
272272
fi

bin/visualpy.bat

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ rem # Install Visual Python
8282
rem #=========================================================================
8383
:f_install
8484
call :f_check_extension RES
85-
rem # 1 = Jupyterr Extension is not actived
85+
rem # 1 = Jupyter Extension is not actived
8686
rem # 2 = visualpython does not exist
8787
rem # 3 = visualpython exists
8888

@@ -110,7 +110,7 @@ rem # Uninstall Visual Python
110110
rem #=========================================================================
111111
:f_uninstall
112112
call :f_check_extension RES
113-
rem # 1 = Jupyterr Extension is not actived
113+
rem # 1 = Jupyter Extension is not actived
114114
rem # 2 = visualpython does not exist
115115
rem # 3 = visualpython exists
116116

@@ -241,7 +241,7 @@ rem #=========================================================================
241241

242242
rem #=========================================================================
243243
rem # Check Visual Python files
244-
rem # 1 = Jupyterr Extension is not actived
244+
rem # 1 = Jupyter Extension is not actived
245245
rem # 2 = visualpython does not exist
246246
rem # 3 = visualpython exists
247247
rem #=========================================================================

css/file_io/udf.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,7 @@
205205
background-image: url(../../resource/chevron_big_down.svg) !important;
206206
}
207207
#vp_udfPage .vp-sn-item-header input.vp-sn-item-title {
208-
width: calc(100% - 100px);
208+
width: calc(100% - 110px);
209209
outline: none;
210210
background: transparent;
211211
border: 0.5px solid transparent;

src/api_block/block.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1801,7 +1801,8 @@ define([
18011801
};
18021802

18031803
blockContainerThis.createAppsPage(menu, file, config);
1804-
break;
1804+
return;
1805+
// break;
18051806
}
18061807
}
18071808

@@ -2029,7 +2030,7 @@ define([
20292030
$(blockLineNumberInfoDom).find('.vp-apiblock-circle-play').css(STR_OPACITY, 1);
20302031
}
20312032

2032-
2033+
blockContainerThis.setFocusedPageType(FOCUSED_PAGE_TYPE.BOARD);
20332034
blockContainerThis.resetBlockListAndRenderThisBlock(thisBlock);
20342035

20352036
event.stopPropagation();

src/api_block/blockContainer.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2649,7 +2649,7 @@ define([
26492649
this.hideOptionPreviewBox();
26502650
$(VP_ID_PREFIX + VP_APIBLOCK_BOARD_OPTION_PREVIEW_BUTTON).removeClass('enabled');
26512651

2652-
this.setNavigator(BLOCK_CODELINE_TYPE.NONE, 'Visual Python 1.1.9');
2652+
this.setNavigator(BLOCK_CODELINE_TYPE.NONE, 'Visual Python 1.1.10');
26532653
this.setFocusedPageType(FOCUSED_PAGE_TYPE.BOARD);
26542654
$('.vp-apiblock-option-tab-none').css(STR_DISPLAY, STR_BLOCK);
26552655
}

src/api_block/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@
175175
id='vp_apiblock_option_page'>
176176
<div class="vp-apiblock-option-navigator">
177177
<div class="vp-apiblock-option-navigator-label">
178-
<span class="vp-orange-text">Visual Python 1.1.9</span>
178+
<span class="vp-orange-text">Visual Python 1.1.10</span>
179179
</div>
180180
<div class="vp-apiblock-option-new-to-save" title="something modified...">
181181

src/common/constant.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ define ([
4848
* toolbar btn properties
4949
*/
5050
const TOOLBAR_BTN_INFO = {
51-
HELP: "Visual Python 1.1.9"
51+
HELP: "Visual Python 1.1.10"
5252
// , ICON: "fa-angellist"
5353
, ICON: "vp-main-icon"
5454
, ID: "vpBtnToggle"

src/common/vpFrameEditor.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1755,7 +1755,11 @@ define([
17551755
var code = this.state.steps.join('\n');
17561756
var returnVariable = $(this.wrapSelector('#vp_feReturn')).val();
17571757
if (returnVariable != '') {
1758-
code = code.replaceAll('_vp', returnVariable);
1758+
code = code.replaceAll(this.state.tempObj, returnVariable);
1759+
1760+
code += '\n' + returnVariable;
1761+
} else {
1762+
code += '\n' + this.state.tempObj;
17591763
}
17601764
return code;
17611765
}

src/common/vpSubsetEditor.js

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2278,6 +2278,15 @@ define([
22782278
this.setPreview(code.toString());
22792279
}
22802280

2281+
// display
2282+
if (this.useCell) {
2283+
code.appendLine();
2284+
if (allocation && this.state.allocateTo != '') {
2285+
code.append(this.state.allocateTo);
2286+
} else {
2287+
code.append(this.state.pandasObject);
2288+
}
2289+
}
22812290
return code.toString();
22822291
}
22832292

0 commit comments

Comments
 (0)