From c21be2f386ee78385ce2207bd2baaad9c98a97cd Mon Sep 17 00:00:00 2001 From: MinRK Date: Mon, 9 Apr 2012 15:10:43 -0700 Subject: [PATCH] hide output_area for js prevents growing vertical space from adding empty output_areas. --- IPython/frontend/html/notebook/static/js/codecell.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/IPython/frontend/html/notebook/static/js/codecell.js b/IPython/frontend/html/notebook/static/js/codecell.js index ecc563577..84055b7b0 100644 --- a/IPython/frontend/html/notebook/static/js/codecell.js +++ b/IPython/frontend/html/notebook/static/js/codecell.js @@ -690,6 +690,9 @@ var IPython = (function (IPython) { // We just eval the JS code, element appears in the local scope. var element = $("
").addClass("box_flex1 output_subarea"); e.append(element); + // Div for js shouldn't be drawn, as it will add empty height to the area. + e.hide(); + eval(js); }