Show More
@@ -1183,13 +1183,11 b' var IPython = (function (IPython) {' | |||||
1183 | * @method collapse_all_output |
|
1183 | * @method collapse_all_output | |
1184 | */ |
|
1184 | */ | |
1185 | Notebook.prototype.collapse_all_output = function () { |
|
1185 | Notebook.prototype.collapse_all_output = function () { | |
1186 | var ncells = this.ncells(); |
|
1186 | $.map(this.get_cells(), function (cell, i) { | |
1187 | var cells = this.get_cells(); |
|
1187 | if (cell instanceof IPython.CodeCell) { | |
1188 | for (var i=0; i<ncells; i++) { |
|
1188 | cell.collapse_output(); | |
1189 | if (cells[i] instanceof IPython.CodeCell) { |
|
|||
1190 | cells[i].collapse_output(); |
|
|||
1191 | } |
|
1189 | } | |
1192 | }; |
|
1190 | }); | |
1193 | // this should not be set if the `collapse` key is removed from nbformat |
|
1191 | // this should not be set if the `collapse` key is removed from nbformat | |
1194 | this.set_dirty(true); |
|
1192 | this.set_dirty(true); | |
1195 | }; |
|
1193 | }; | |
@@ -1215,13 +1213,11 b' var IPython = (function (IPython) {' | |||||
1215 | * @method expand_all_output |
|
1213 | * @method expand_all_output | |
1216 | */ |
|
1214 | */ | |
1217 | Notebook.prototype.expand_all_output = function () { |
|
1215 | Notebook.prototype.expand_all_output = function () { | |
1218 | var ncells = this.ncells(); |
|
1216 | $.map(this.get_cells(), function (cell, i) { | |
1219 | var cells = this.get_cells(); |
|
1217 | if (cell instanceof IPython.CodeCell) { | |
1220 | for (var i=0; i<ncells; i++) { |
|
1218 | cell.expand_output(); | |
1221 | if (cells[i] instanceof IPython.CodeCell) { |
|
|||
1222 | cells[i].expand_output(); |
|
|||
1223 | } |
|
1219 | } | |
1224 | }; |
|
1220 | }); | |
1225 | // this should not be set if the `collapse` key is removed from nbformat |
|
1221 | // this should not be set if the `collapse` key is removed from nbformat | |
1226 | this.set_dirty(true); |
|
1222 | this.set_dirty(true); | |
1227 | }; |
|
1223 | }; | |
@@ -1247,13 +1243,11 b' var IPython = (function (IPython) {' | |||||
1247 | * @method clear_all_output |
|
1243 | * @method clear_all_output | |
1248 | */ |
|
1244 | */ | |
1249 | Notebook.prototype.clear_all_output = function () { |
|
1245 | Notebook.prototype.clear_all_output = function () { | |
1250 | var ncells = this.ncells(); |
|
1246 | $.map(this.get_cells(), function (cell, i) { | |
1251 | var cells = this.get_cells(); |
|
1247 | if (cell instanceof IPython.CodeCell) { | |
1252 | for (var i=0; i<ncells; i++) { |
|
1248 | cell.clear_output(); | |
1253 | if (cells[i] instanceof IPython.CodeCell) { |
|
|||
1254 | cells[i].clear_output(); |
|
|||
1255 | } |
|
1249 | } | |
1256 | }; |
|
1250 | }); | |
1257 | this.set_dirty(true); |
|
1251 | this.set_dirty(true); | |
1258 | }; |
|
1252 | }; | |
1259 |
|
1253 | |||
@@ -1278,13 +1272,11 b' var IPython = (function (IPython) {' | |||||
1278 | * @method scroll_all_output |
|
1272 | * @method scroll_all_output | |
1279 | */ |
|
1273 | */ | |
1280 | Notebook.prototype.scroll_all_output = function () { |
|
1274 | Notebook.prototype.scroll_all_output = function () { | |
1281 | var ncells = this.ncells(); |
|
1275 | $.map(this.get_cells(), function (cell, i) { | |
1282 | var cells = this.get_cells(); |
|
1276 | if (cell instanceof IPython.CodeCell) { | |
1283 | for (var i=0; i<ncells; i++) { |
|
1277 | cell.scroll_output(); | |
1284 | if (cells[i] instanceof IPython.CodeCell) { |
|
|||
1285 | cells[i].scroll_output(); |
|
|||
1286 | } |
|
1278 | } | |
1287 | }; |
|
1279 | }); | |
1288 | // this should not be set if the `collapse` key is removed from nbformat |
|
1280 | // this should not be set if the `collapse` key is removed from nbformat | |
1289 | this.set_dirty(true); |
|
1281 | this.set_dirty(true); | |
1290 | }; |
|
1282 | }; |
General Comments 0
You need to be logged in to leave comments.
Login now