From b72ab070b3996dc077fbeff2356b0fb237543d75 Mon Sep 17 00:00:00 2001 From: Jason Grout Date: Fri, 10 Feb 2017 16:25:34 -0500 Subject: [PATCH] Add a clearOutput code cell event This is triggered when a code cell clears its output. --- notebook/static/notebook/js/codecell.js | 1 + 1 file changed, 1 insertion(+) diff --git a/notebook/static/notebook/js/codecell.js b/notebook/static/notebook/js/codecell.js index 54781cf6f..20d217919 100644 --- a/notebook/static/notebook/js/codecell.js +++ b/notebook/static/notebook/js/codecell.js @@ -510,6 +510,7 @@ define([ CodeCell.prototype.clear_output = function (wait) { this.output_area.clear_output(wait); this.set_input_prompt(); + this.events.trigger('clearOutput.CodeCell', {cell: this}); };