File tree Expand file tree Collapse file tree
packages/libro-jupyter/src/cell Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -210,8 +210,7 @@ export class JupyterCodeCellView extends LibroCodeCellView {
210210 }
211211 ( cellModel . metadata . execution as any ) [ 'libro_execution_msg_id' ] =
212212 future . msg . header . msg_id ;
213- // 触发保存
214- this . parent . model . saveNotebookContent ( ) ;
213+ cellModel . metadata = { ...cellModel . metadata } ;
215214
216215 // Handle iopub messages
217216 future . onIOPub = ( msg : any ) => {
@@ -222,8 +221,7 @@ export class JupyterCodeCellView extends LibroCodeCellView {
222221 to_execute : new Date ( ) . toISOString ( ) ,
223222 libro_execution_msg_id : future . msg . header . msg_id ,
224223 } as ExecutionMeta ;
225- // 触发保存
226- this . parent . model . saveNotebookContent ( ) ;
224+ cellModel . metadata = { ...cellModel . metadata } ;
227225 cellModel . kernelExecuting = true ;
228226 startTimeStr = msg . header . date as string ;
229227 const meta = cellModel . metadata . execution as ExecutionMeta ;
You can’t perform that action at this time.
0 commit comments