diff --git a/notebook/static/notebook/js/notebook.js b/notebook/static/notebook/js/notebook.js index 9a84ade3c..dc39537a9 100644 --- a/notebook/static/notebook/js/notebook.js +++ b/notebook/static/notebook/js/notebook.js @@ -1496,7 +1496,9 @@ define(function (require) { */ Notebook.prototype.merge_cell_above = function () { var index = this.get_selected_index(); - this.merge_cells([index-1, index], true) + if (index != 0) { + this.merge_cells([index-1, index], true) + } }; /**