Show More
@@ -22,6 +22,7 b' var IPython = (function (IPython) {' | |||||
22 | this.code_mirror = null; |
|
22 | this.code_mirror = null; | |
23 | this.input_prompt_number = null; |
|
23 | this.input_prompt_number = null; | |
24 | this.tooltip_on_tab = true; |
|
24 | this.tooltip_on_tab = true; | |
|
25 | this.collapsed = false; | |||
25 | IPython.Cell.apply(this, arguments); |
|
26 | IPython.Cell.apply(this, arguments); | |
26 | }; |
|
27 | }; | |
27 |
|
28 | |||
@@ -200,17 +201,20 b' var IPython = (function (IPython) {' | |||||
200 |
|
201 | |||
201 |
|
202 | |||
202 | CodeCell.prototype.collapse = function () { |
|
203 | CodeCell.prototype.collapse = function () { | |
203 | this.output_area.collapse(); |
|
204 | this.collapsed = true; | |
|
205 | this.output_area.collapse(); | |||
204 | }; |
|
206 | }; | |
205 |
|
207 | |||
206 |
|
208 | |||
207 | CodeCell.prototype.expand = function () { |
|
209 | CodeCell.prototype.expand = function () { | |
208 | this.output_area.expand(); |
|
210 | this.collapsed = false; | |
|
211 | this.output_area.expand(); | |||
209 | }; |
|
212 | }; | |
210 |
|
213 | |||
211 |
|
214 | |||
212 | CodeCell.prototype.toggle_output = function () { |
|
215 | CodeCell.prototype.toggle_output = function () { | |
213 | this.output_area.toggle_output(); |
|
216 | this.collapsed = Boolean(1 - this.collapsed); | |
|
217 | this.output_area.toggle_output(); | |||
214 | }; |
|
218 | }; | |
215 |
|
219 | |||
216 |
|
220 |
General Comments 0
You need to be logged in to leave comments.
Login now