From 80fe47ba54898c029170170c0251a4eff3914a38 2012-09-23 12:05:12 From: Bussonnier Matthias Date: 2012-09-23 12:05:12 Subject: [PATCH] add insert_cell_at_bottom prototype --- diff --git a/IPython/frontend/html/notebook/static/js/notebook.js b/IPython/frontend/html/notebook/static/js/notebook.js index 346b6d3..db7cae5 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