File tree Expand file tree Collapse file tree 2 files changed +6
-5
lines changed Expand file tree Collapse file tree 2 files changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -70,9 +70,7 @@ export class Dialog {
7070 } ) ;
7171 }
7272
73- return props . serviceContainer . saveCodeToDevice ( allCellContent , ( content ) => {
74- console . log ( "[Dialog] saveCard: Streaming output:" , content ) ;
75- } ) ;
73+ return props . serviceContainer . saveCodeToDevice ( allCellContent ) ;
7674 } ) ;
7775
7876 optionsContainer . appendChild ( this . connectCard . getElement ( ) ) ;
Original file line number Diff line number Diff line change @@ -52,7 +52,7 @@ export class ServiceContainer {
5252
5353 public async saveCodeToDevice (
5454 codeToSave : string ,
55- stream : ( ( content : string ) => void ) | StreamCallback
55+ stream : StreamCallback | null = null
5656 ) : Promise < { status : string ; execution_count : number ; ename ?: string ; evalue ?: string ; traceback ?: string [ ] } > {
5757 if ( ! codeToSave ) {
5858 return {
@@ -78,7 +78,10 @@ export class ServiceContainer {
7878 } ;
7979 }
8080
81- const result = await this . _consoleService . executeCommand ( bootCodeWithSave , stream ) ;
81+ const result = await this . _consoleService . executeCommand (
82+ bootCodeWithSave ,
83+ stream ?? ( ( ) => { } )
84+ ) ;
8285
8386 if ( ! result . success ) {
8487 console . log ( "[ServiceContainer] saveCodeToDevice - Command execution failed:" , result . error ) ;
You can’t perform that action at this time.
0 commit comments