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

Commit724cf44

Browse files
author
minjk-bl
committed
Edit auto-update on JupyterLab and Fix default-state of open vp initially on Jupyter Notebook
1 parent1004447 commit724cf44

File tree

1 file changed

+6
-10
lines changed

1 file changed

+6
-10
lines changed

‎visualpython/js/com/com_Config.js‎

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,6 @@ define([
208208
vp_config_version:'1.0.0',
209209
vp_signature:'VisualPython',
210210
vp_position:{},
211-
// CHROME: default to display vp
212211
vp_section_display:false,
213212
vp_note_display:false,
214213
vp_menu_width:Config.MENU_MIN_WIDTH,
@@ -226,8 +225,6 @@ define([
226225

227226
// merge default config
228227
$.extend(true,this.defaultConfig,this.metadataSettings);
229-
230-
console.log('test 1',this.defaultConfig);
231228
}
232229

233230
_readUserCommandList(){
@@ -487,15 +484,15 @@ define([
487484
that._checkMounted().then(function(){
488485
that._readFromColab(configKey).then(function(result){
489486
letdata=result;
490-
if(data==undefined||Object.keys(data).length===0){
487+
if(data==undefined||(datainstanceofObject&&Object.keys(data).length===0)){
491488
resolve(data);
492489
return;
493490
}
494491
if(dataKey==''){
495492
resolve(data);
496493
return;
497494
}
498-
if(datainstanceofObject&&Object.keys(data).length===0){
495+
if(datainstanceofObject&&Object.keys(data).length>0){
499496
resolve(data[dataKey]);
500497
return;
501498
}
@@ -511,15 +508,15 @@ define([
511508
// LAB: use local .visualpython files
512509
that._readFromLab(configKey).then(function(result){
513510
letdata=result;
514-
if(data==undefined||Object.keys(data).length===0){
511+
if(data==undefined||(datainstanceofObject&&Object.keys(data).length===0)){
515512
resolve(data);
516513
return;
517514
}
518515
if(dataKey==''){
519516
resolve(data);
520517
return;
521518
}
522-
if(datainstanceofObject&&Object.keys(data).length===0){
519+
if(datainstanceofObject&&Object.keys(data).length>0){
523520
resolve(data[dataKey]);
524521
return;
525522
}
@@ -787,7 +784,7 @@ define([
787784
letnowDate=newDate();
788785
this.getData('version_timestamp','vpcfg').then(function(data){
789786
letdoCheckVersion=false;
790-
vpLog.display(VP_LOG_TYPE.LOG,'Checking its version timestamp... : '+data);
787+
vpLog.display(VP_LOG_TYPE.DEVELOP,'Checking its version timestamp... : '+data);
791788
if(data==undefined||(datainstanceofObject&&Object.keys(data).length===0)){
792789
// no timestamp, check version
793790
doCheckVersion=true;
@@ -801,7 +798,6 @@ define([
801798

802799
if(diff>=1){
803800
// if More than 1 day passed, check version
804-
vpLog.display(VP_LOG_TYPE.LOG,'timestamp diff : '+diff);
805801
doCheckVersion=true;
806802
}
807803
}
@@ -962,7 +958,7 @@ define([
962958
/**
963959
* Version
964960
*/
965-
Config.version="2.3.2";// TEST:
961+
Config.version="2.3.2";
966962

967963
/**
968964
* Type of mode

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp