File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed
src/client/datascience/jupyter Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change
1
+ Fix data viewer not opening on certain data frames.
Original file line number Diff line number Diff line change @@ -98,8 +98,9 @@ export class JupyterVariables implements IJupyterVariables {
98
98
return defaultValue ;
99
99
}
100
100
101
- // Prep our targetVariable to send over
102
- const variableString = JSON . stringify ( targetVariable ) . replace ( / \\ n / g, '\\\\n' ) ;
101
+ // Prep our targetVariable to send over. Remove the 'value' as it's not necessary for getting df info and can have invalid data in it
102
+ const pruned = { ...targetVariable , value : '' } ;
103
+ const variableString = JSON . stringify ( pruned ) ;
103
104
104
105
// Setup a regex
105
106
const regexPattern = extraReplacements . length === 0 ? '_VSCode_JupyterTestValue' : [ '_VSCode_JupyterTestValue' , ...extraReplacements . map ( v => v . key ) ] . join ( '|' ) ;
You can’t perform that action at this time.
0 commit comments