Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions news/2 Fixes/10075.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Fix data viewer not opening on certain data frames.
5 changes: 3 additions & 2 deletions src/client/datascience/jupyter/jupyterVariables.ts
Original file line number Diff line number Diff line change
Expand Up @@ -120,8 +120,9 @@ export class JupyterVariables implements IJupyterVariables {
return defaultValue;
}

// Prep our targetVariable to send over
const variableString = JSON.stringify(targetVariable).replace(/\\n/g, '\\\\n');
// 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
const pruned = { ...targetVariable, value: '' };
const variableString = JSON.stringify(pruned);

// Setup a regex
const regexPattern =
Expand Down