jupyterlab-ipyflow 0.0.144 → 0.0.147
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/index.js +8 -3
- package/package.json +1 -1
package/lib/index.js
CHANGED
|
@@ -66,6 +66,7 @@ let cellModelsById = {};
|
|
|
66
66
|
let orderIdxById = {};
|
|
67
67
|
let cellPendingExecution = null;
|
|
68
68
|
let lastExecutionMode = null;
|
|
69
|
+
let isReactivelyExecuting = false;
|
|
69
70
|
let lastExecutionHighlights = null;
|
|
70
71
|
let executedReactiveReadyCells = new Set();
|
|
71
72
|
let newReadyCells = new Set();
|
|
@@ -367,16 +368,20 @@ const connectToComm = (session, notebook) => {
|
|
|
367
368
|
}
|
|
368
369
|
updateUI(notebook);
|
|
369
370
|
resetReactiveState();
|
|
370
|
-
comm.send({
|
|
371
|
-
type: 'reactivity_cleanup',
|
|
372
|
-
});
|
|
373
371
|
}
|
|
374
372
|
else {
|
|
375
373
|
resetReactiveState();
|
|
376
374
|
updateUI(notebook);
|
|
377
375
|
}
|
|
376
|
+
if (isReactivelyExecuting) {
|
|
377
|
+
comm.send({
|
|
378
|
+
type: 'reactivity_cleanup',
|
|
379
|
+
});
|
|
380
|
+
}
|
|
381
|
+
isReactivelyExecuting = false;
|
|
378
382
|
}
|
|
379
383
|
else {
|
|
384
|
+
isReactivelyExecuting = true;
|
|
380
385
|
onActiveCellChange(notebook, cellPendingExecution);
|
|
381
386
|
CodeCell.execute(cellPendingExecution, session);
|
|
382
387
|
}
|
package/package.json
CHANGED