From 045973b6bbbd1fd408797e58d8924bf512c0f47e Mon Sep 17 00:00:00 2001 From: Bussonnier Matthias Date: Sun, 23 Sep 2012 13:01:44 +0200 Subject: [PATCH] add insert_cell_at_bottom prototype --- IPython/frontend/html/notebook/static/js/notebook.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/IPython/frontend/html/notebook/static/js/notebook.js b/IPython/frontend/html/notebook/static/js/notebook.js index 346b6d3de..db7cae52f 100644 --- a/IPython/frontend/html/notebook/static/js/notebook.js +++ b/IPython/frontend/html/notebook/static/js/notebook.js @@ -550,6 +550,11 @@ var IPython = (function (IPython) { }; + Notebook.prototype.insert_cell_at_bottom = function (type){ + var len = this.ncells(); + return this.insert_cell_below(type,len-1); + } + Notebook.prototype.insert_cell_below = function (type, index) { // type = ('code','html','markdown') // index = cell index or undefined to insert below selected