Skip to content

Commit

Permalink
Merge pull request #7357 from jdfreder/error-overlay
Browse files Browse the repository at this point in the history
When executing a cell, clear output and ignore queued animations.
  • Loading branch information
Carreau committed Jan 1, 2015
2 parents 3a73cbc + ba64379 commit 73dcc0c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion IPython/html/static/notebook/js/codecell.js
Original file line number Diff line number Diff line change
Expand Up @@ -416,7 +416,7 @@ define([
return;
}

this.active_output_area.clear_output();
this.active_output_area.clear_output(false, true);

// Clear widget area
for (var i = 0; i < this.widget_views.length; i++) {
Expand Down
4 changes: 2 additions & 2 deletions IPython/html/static/notebook/js/outputarea.js
Original file line number Diff line number Diff line change
Expand Up @@ -850,7 +850,7 @@ define([
};


OutputArea.prototype.clear_output = function(wait) {
OutputArea.prototype.clear_output = function(wait, ignore_que) {
if (wait) {

// If a clear is queued, clear before adding another to the queue.
Expand All @@ -863,7 +863,7 @@ define([

// Fix the output div's height if the clear_output is waiting for
// new output (it is being used in an animation).
if (this.clear_queued) {
if (!ignore_que && this.clear_queued) {
var height = this.element.height();
this.element.height(height);
this.clear_queued = false;
Expand Down

0 comments on commit 73dcc0c

Please sign in to comment.