@@ -170,7 +170,7 @@ define([
170170
171171 useCopy : false ,
172172 toFrame : false ,
173- subsetType : 'subset ' , // subset / loc / iloc
173+ subsetType : 'loc ' , // subset / loc / iloc
174174
175175 tabPage : 'subset' , // subset / data
176176
@@ -633,8 +633,11 @@ define([
633633 tag . appendFormatLine ( '<div class="{0} {1} {2} {3}">' , VP_DS_SELECT_BOX , 'left' , VP_DS_DROPPABLE , 'no-selection' ) ;
634634 // get col data and make draggable items
635635 colList . forEach ( ( col , idx ) => {
636+ // col.array parsing
637+ var colInfo = vpCommon . safeString ( col . array ) ;
638+ // render column box
636639 tag . appendFormatLine ( '<div class="{0} {1} {2}" data-idx="{3}" data-colname="{4}" data-dtype="{5}" data-code="{6}" title="{7}"><span>{8}</span></div>'
637- , VP_DS_SELECT_ITEM , 'select-col' , VP_DS_DRAGGABLE , col . location , col . value , col . dtype , col . code , col . label + ': \n' + col . array , col . label ) ;
640+ , VP_DS_SELECT_ITEM , 'select-col' , VP_DS_DRAGGABLE , col . location , col . value , col . dtype , col . code , col . label + ': \n' + colInfo , col . label ) ;
638641 } ) ;
639642 tag . appendLine ( '</div>' ) ; // VP_DS_SELECT_BOX
640643 return tag . toString ( ) ;
@@ -1093,7 +1096,7 @@ define([
10931096 if ( this . pageThis ) {
10941097 $ ( this . pageThis . wrapSelector ( '#' + this . targetId ) ) . val ( code ) ;
10951098 $ ( this . pageThis . wrapSelector ( '#' + this . targetId ) ) . trigger ( {
1096- type : 'subset_run ' ,
1099+ type : 'apps_run ' ,
10971100 title : 'Subset' ,
10981101 code : code ,
10991102 state : this . state ,
@@ -1103,7 +1106,7 @@ define([
11031106 } else {
11041107 $ ( vpCommon . wrapSelector ( '#' + this . targetId ) ) . val ( code ) ;
11051108 $ ( vpCommon . wrapSelector ( '#' + this . targetId ) ) . trigger ( {
1106- type : 'subset_run ' ,
1109+ type : 'apps_run ' ,
11071110 title : 'Subset' ,
11081111 code : code ,
11091112 state : this . state ,
@@ -1394,9 +1397,8 @@ define([
13941397 // that.loadSubsetType(that.state.dataType);
13951398
13961399 if ( that . state . dataType == 'DataFrame' ) {
1397- var colCode = vpCommon . formatString ( '_vp_print(_vp_get_columns_list({0}))' , varName ) ;
13981400 // get result and load column list
1399- kernelApi . executePython ( colCode , function ( result ) {
1401+ kernelApi . getColumnList ( varName , function ( result ) {
14001402 var colList = JSON . parse ( result ) ;
14011403 colList = colList . map ( function ( x ) {
14021404 return {
@@ -1410,9 +1412,8 @@ define([
14101412 that . generateCode ( ) ;
14111413 } ) ;
14121414
1413- var rowCode = vpCommon . formatString ( '_vp_print(_vp_get_rows_list({0}))' , varName ) ;
14141415 // get result and load column list
1415- kernelApi . executePython ( rowCode , function ( result ) {
1416+ kernelApi . getRowList ( varName , function ( result ) {
14161417 var rowList = JSON . parse ( result ) ;
14171418 rowList = rowList . map ( function ( x ) {
14181419 return {
0 commit comments