File tree 1 file changed +10
-1
lines changed
1 file changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -1196,8 +1196,12 @@ define([
1196
1196
this . loading = true ;
1197
1197
kernelApi . executePython ( code . toString ( ) , function ( result ) {
1198
1198
try {
1199
+ if ( ! result || result . length <= 0 ) {
1200
+ return ;
1201
+ }
1202
+ var data = JSON . parse ( result . substr ( 1 , result . length - 2 ) . replaceAll ( '\\\\' , '\\' ) ) ;
1203
+
1199
1204
kernelApi . getColumnList ( tempObj , function ( columnResult ) {
1200
- var data = JSON . parse ( result . substr ( 1 , result . length - 2 ) . replaceAll ( '\\\\' , '\\' ) ) ;
1201
1205
1202
1206
var columnList = JSON . parse ( columnResult ) ;
1203
1207
// var columnList = data.columns;
@@ -1430,6 +1434,11 @@ define([
1430
1434
that . state . tempObj = '_vp' ;
1431
1435
that . initState ( ) ;
1432
1436
1437
+ // reset table
1438
+ $ ( that . wrapSelector ( '.' + VP_FE_TABLE ) ) . replaceWith ( function ( ) {
1439
+ return that . renderTable ( '' ) ;
1440
+ } ) ;
1441
+
1433
1442
// load code with temporary df
1434
1443
that . loadCode ( that . getTypeCode ( FRAME_EDIT_TYPE . INIT ) ) ;
1435
1444
that . loadInfo ( ) ;
You can’t perform that action at this time.
0 commit comments