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); }