File tree 1 file changed +3
-7
lines changed
src/client/datascience/jupyter/kernels
1 file changed +3
-7
lines changed Original file line number Diff line number Diff line change @@ -426,12 +426,7 @@ export class CellExecution {
426
426
}
427
427
428
428
private async addToCellData (
429
- output :
430
- | nbformat . IUnrecognizedOutput
431
- | nbformat . IExecuteResult
432
- | nbformat . IDisplayData
433
- | nbformat . IStream
434
- | nbformat . IError ,
429
+ output : nbformat . IExecuteResult | nbformat . IDisplayData | nbformat . IStream | nbformat . IError ,
435
430
clearState : RefBool
436
431
) {
437
432
const converted = cellOutputToVSCCellOutput ( output ) ;
@@ -494,6 +489,7 @@ export class CellExecution {
494
489
output_type : 'stream' ,
495
490
// tslint:disable-next-line: no-any
496
491
text : ( o . data as any ) [ 'text/plain' ] . toString ( ) ,
492
+ name : 'stdout' ,
497
493
metadata : { } ,
498
494
execution_count : reply . execution_count
499
495
} ,
@@ -533,7 +529,7 @@ export class CellExecution {
533
529
if ( existing && 'text/plain' in existing . data ) {
534
530
// tslint:disable-next-line:restrict-plus-operands
535
531
existing . data [ 'text/plain' ] = formatStreamText (
536
- concatMultilineString ( `${ existing . data [ 'text/plain' ] } ${ escape ( msg . content . text ) } ` )
532
+ concatMultilineString ( `${ existing . data [ 'text/plain' ] } ${ msg . content . text } ` )
537
533
) ;
538
534
edit . replaceCellOutput ( this . cellIndex , [ ...exitingCellOutput ] ) ; // This is necessary to get VS code to update (for now)
539
535
} else {
You can’t perform that action at this time.
0 commit comments