Browse Source

clear * prompt from cells that are not going to be executed

James Reeve 6 years ago
parent
commit
095fd919cd
1 changed files with 6 additions and 0 deletions
  1. 6 0
      packages/console/src/widget.ts

+ 6 - 0
packages/console/src/widget.ts

@@ -524,6 +524,12 @@ export class CodeConsole extends Widget {
             cell.model.value.text = text;
           }
         }
+      } else if (value && value.content.status === 'error') {
+        each(this._cells, (cell: CodeCell) => {
+          if (cell.model.executionCount === null) {
+            cell.setPrompt('');
+          }
+        });
       }
       cell.model.contentChanged.disconnect(this.update, this);
       this.update();