diff --git a/IPython/frontend/html/notebook/static/js/notebook.js b/IPython/frontend/html/notebook/static/js/notebook.js index c3f6c381681..a7937ce954c 100644 --- a/IPython/frontend/html/notebook/static/js/notebook.js +++ b/IPython/frontend/html/notebook/static/js/notebook.js @@ -443,7 +443,7 @@ var IPython = (function (IPython) { }; - // Cell collapsing + // Cell collapsing and output clearing Notebook.prototype.collapse = function (index) { var i = this.index_or_selected(index); @@ -465,6 +465,18 @@ var IPython = (function (IPython) { }; }; + + Notebook.prototype.clear_all_output = function () { + var ncells = this.ncells(); + var cells = this.cells(); + for (var i=0; iCell - + Format + +
+ + + + + + Output
@@ -105,13 +113,6 @@

Cell

Move
-
- - - - - Output -