add insert_cell_at_bottom prototype

This commit is contained in:
Bussonnier Matthias 2012-09-23 13:01:44 +02:00
parent 4982a24bd7
commit 045973b6bb

View File

@ -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