mirror of
https://github.com/jupyter/notebook.git
synced 2025-01-12 11:45:38 +08:00
add insert_cell_at_bottom prototype
This commit is contained in:
parent
4982a24bd7
commit
045973b6bb
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user