From 686dd7aea0490889cee11765d517425a1ea8816e Mon Sep 17 00:00:00 2001 From: Jonathan Frederic Date: Thu, 17 Oct 2013 06:10:40 +0000 Subject: [PATCH] Clear widgets upon cell execute --- IPython/html/static/notebook/js/codecell.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/IPython/html/static/notebook/js/codecell.js b/IPython/html/static/notebook/js/codecell.js index 848735792..64f9011fb 100644 --- a/IPython/html/static/notebook/js/codecell.js +++ b/IPython/html/static/notebook/js/codecell.js @@ -304,6 +304,9 @@ var IPython = (function (IPython) { */ CodeCell.prototype.execute = function () { this.output_area.clear_output(); + this.widget_subarea.html(''); + this.widget_subarea.height(''); + this.widget_area.height(''); this.set_input_prompt('*'); this.element.addClass("running"); if (this.last_msg_id) {