Skip to content

Commit f7b0032

Browse files
committed
Update notebook
1 parent 210bac8 commit f7b0032

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/notebook.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -313,12 +313,10 @@ export class RNotebookProvider implements vscode.NotebookContentProvider, vscode
313313
}];
314314
break;
315315
case 'plot':
316-
const plotData = fs.readFileSync(output.result);
317-
const buffer = new Buffer(plotData).toString('base64');
318316
cell.outputs = [{
319317
outputKind: vscode.CellOutputKind.Rich,
320318
data: {
321-
'image/png': buffer,
319+
'image/png': fs.readFileSync(output.result).toString('base64'),
322320
}
323321
}];
324322
break;

0 commit comments

Comments
 (0)