You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
this.writeToDebugLog(`iopub with msg_id = ${msg_id} and msg_type == status and execution_state == idle`);
328
350
lettimesWaited=0;
329
351
constwaitForFinalIOMessage=()=>{
330
352
timesWaited+=1;
331
353
// The Shell message handler has processed the message
332
354
if(!this.msgSubject.has(msg_id)){
355
+
this.writeToDebugLog(`iopub with msg_id = ${msg_id} and msg_type == status and execution_state == idle, not yet in msgSubject`);
333
356
return;
334
357
}
335
358
// Last message sent on shell channel (status='ok' or status='error')
336
359
// and now we have a status message, this means the exection is deemed complete
337
360
if(this.finalMessage.has(msg_id)){
361
+
this.writeToDebugLog(`iopub with msg_id = ${msg_id} and msg_type == status and execution_state == idle, found in finalMessage`);
338
362
constsubject=this.msgSubject.get(msg_id);
339
363
constinfo=this.finalMessage.get(msg_id);
340
364
if(!info.shellMessage&×Waited<10){
365
+
this.writeToDebugLog(`iopub with msg_id = ${msg_id} and msg_type == status and execution_state == idle, found in finalMessage and info.shellMessage = `+typeof(info.shellMessage));
366
+
this.writeToDebugLog(`iopub with msg_id = ${msg_id} and msg_type == status and execution_state == idle, found in finalMessage and timesWaited = `+timesWaited.toString());
341
367
setTimeout(()=>{
342
368
waitForFinalIOMessage();
343
369
},10);
344
370
return;
345
371
}
346
372
this.finalMessage.delete(msg_id);
347
373
this.msgSubject.delete(msg_id);
374
+
this.writeToDebugLog(`iopub with msg_id = ${msg_id} and msg_type == status and execution_state == idle almost done`);
348
375
if(info.shellMessage){
376
+
this.writeToDebugLog(`iopub with msg_id = ${msg_id} and msg_type == status and execution_state == idle, and shell message being sent out`);
349
377
subject.onNext(info.shellMessage);
350
378
}
379
+
this.writeToDebugLog(`iopub with msg_id = ${msg_id} and msg_type == status and execution_state == idle, done`);
351
380
subject.onCompleted();
352
381
}
353
382
else{
383
+
this.writeToDebugLog(`iopub with msg_id = ${msg_id} and msg_type == status and execution_state == idle, inserted into finalMessage`);
0 commit comments