Alias execute_cell to execute_marked_cells

Jessica B. Hamrick 10 years ago
parent f4913bdcd1
commit a885f9195c

@ -2005,6 +2005,17 @@ define(function (require) {
this.execute_cells(this.get_marked_indices());
};
/**
* Alias for execute_marked_cells, for backwards compatibility --
* previously, doing "Run Cell" would only ever run a single cell (hence
* `execute_cell`), but now it runs all marked cells, so that's the
* preferable function to use. But it is good to keep this function to avoid
* breaking existing extensions, etc.
*/
Notebook.prototype.execute_cell = function () {
this.execute_marked_cells();
};
/**
* Execute or render cell outputs and insert a new cell below.
*/

Loading…
Cancel
Save