Skip to content
Browse files

Double clicking on the end space will insert a new cell.

  • Loading branch information...
1 parent a82fa5d commit cb5364f9233d39a44a7561439b25684d4fd00939 @ellisonbg ellisonbg committed Aug 18, 2011
Showing with 5 additions and 0 deletions.
  1. +5 −0 IPython/frontend/html/notebook/static/js/notebook.js
View
5 IPython/frontend/html/notebook/static/js/notebook.js
@@ -37,7 +37,12 @@ var IPython = (function (IPython) {
// i) provide a margin between the last cell and the end of the notebook
// ii) to prevent the div from scrolling up when the last cell is being
// edited, but is too low on the page, which browsers will do automatically.
+ var that = this;
var end_space = $('<div class="end_space"></div>').height(150);
+ end_space.dblclick(function (e) {
+ var ncells = that.ncells();
+ that.insert_code_cell_after(ncells-1);
+ });
this.element.append(end_space);
$('div#notebook').addClass('border-box-sizing');
};

0 comments on commit cb5364f

Please sign in to comment.
Something went wrong with that request. Please try again.