浏览代码

Better handle run+hide.

Brian E. Granger 7 年之前
父节点
当前提交
9f5e7bd3f5
共有 2 个文件被更改,包括 2 次插入1 次删除
  1. 1 0
      packages/cells/src/widget.ts
  2. 1 1
      packages/notebook/src/actions.ts

+ 1 - 0
packages/cells/src/widget.ts

@@ -691,6 +691,7 @@ namespace CodeCell {
     }
 
     model.executionCount = null;
+    cell.outputHidden = false;
     cell.setPrompt('*');
     model.trusted = true;
 

+ 1 - 1
packages/notebook/src/actions.ts

@@ -1100,10 +1100,10 @@ namespace Private {
    * Run a cell.
    */
   function runCell(parent: Notebook, child: Cell, session?: IClientSession): Promise<boolean> {
-
     switch (child.model.type) {
     case 'markdown':
       (child as MarkdownCell).rendered = true;
+      child.inputHidden = false;
       break;
     case 'code':
       if (session) {