jupyterlab-ipyflow 0.0.136 → 0.0.138
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 +23 -20
- package/package.json +1 -1
package/lib/index.js
CHANGED
|
@@ -332,29 +332,32 @@ const connectToComm = (session, notebook) => {
|
|
|
332
332
|
lastExecutionMode = exec_mode;
|
|
333
333
|
lastExecutionHighlights = msg.content.data['highlights'];
|
|
334
334
|
executedReactiveReadyCells.add(msg.content.data['last_executed_cell_id']);
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
if (!forcedReactiveCells.has(cell.model.id)) {
|
|
340
|
-
if (exec_mode !== 'reactive' || !newReadyCells.has(cell.model.id)) {
|
|
335
|
+
const last_execution_was_error = msg.content.data['last_execution_was_error'];
|
|
336
|
+
if (!last_execution_was_error) {
|
|
337
|
+
for (const cell of notebook.widgets) {
|
|
338
|
+
if (cell.model.type !== 'code' || executedReactiveReadyCells.has(cell.model.id)) {
|
|
341
339
|
continue;
|
|
342
340
|
}
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
341
|
+
if (!forcedReactiveCells.has(cell.model.id)) {
|
|
342
|
+
if (exec_mode !== 'reactive' || !newReadyCells.has(cell.model.id)) {
|
|
343
|
+
continue;
|
|
344
|
+
}
|
|
345
|
+
}
|
|
346
|
+
const codeCell = cell;
|
|
347
|
+
if (cellPendingExecution === null) {
|
|
348
|
+
cellPendingExecution = codeCell;
|
|
349
|
+
// break early if using one of the order-based semantics
|
|
350
|
+
if (flow_order === 'in_order' || exec_schedule === 'strict') {
|
|
351
|
+
break;
|
|
352
|
+
}
|
|
353
|
+
}
|
|
354
|
+
else if (codeCell.model.executionCount == null) {
|
|
355
|
+
// pass
|
|
356
|
+
}
|
|
357
|
+
else if (codeCell.model.executionCount < cellPendingExecution.model.executionCount) {
|
|
358
|
+
// otherwise, execute in order of earliest execution counter
|
|
359
|
+
cellPendingExecution = codeCell;
|
|
350
360
|
}
|
|
351
|
-
}
|
|
352
|
-
else if (codeCell.model.executionCount == null) {
|
|
353
|
-
// pass
|
|
354
|
-
}
|
|
355
|
-
else if (codeCell.model.executionCount < cellPendingExecution.model.executionCount) {
|
|
356
|
-
// otherwise, execute in order of earliest execution counter
|
|
357
|
-
cellPendingExecution = codeCell;
|
|
358
361
|
}
|
|
359
362
|
}
|
|
360
363
|
if (cellPendingExecution === null) {
|
package/package.json
CHANGED