Show More
@@ -15,7 +15,7 b' var IPython = (function (IPython) {' | |||||
15 |
|
15 | |||
16 | var CodeCell = function (notebook) { |
|
16 | var CodeCell = function (notebook) { | |
17 | this.code_mirror = null; |
|
17 | this.code_mirror = null; | |
18 |
this.input_prompt_number = |
|
18 | this.input_prompt_number = null; | |
19 | this.is_completing = false; |
|
19 | this.is_completing = false; | |
20 | this.completion_cursor = null; |
|
20 | this.completion_cursor = null; | |
21 | this.outputs = []; |
|
21 | this.outputs = []; | |
@@ -757,9 +757,9 b' var IPython = (function (IPython) {' | |||||
757 | }; |
|
757 | }; | |
758 |
|
758 | |||
759 | CodeCell.prototype.set_input_prompt = function (number) { |
|
759 | CodeCell.prototype.set_input_prompt = function (number) { | |
760 | var n = number || ' '; |
|
760 | this.input_prompt_number = number; | |
761 | this.input_prompt_number = n; |
|
761 | var ns = number || " "; | |
762 | this.element.find('div.input_prompt').html('In [' + n + ']:'); |
|
762 | this.element.find('div.input_prompt').html('In [' + ns + ']:'); | |
763 | }; |
|
763 | }; | |
764 |
|
764 | |||
765 |
|
765 | |||
@@ -821,7 +821,7 b' var IPython = (function (IPython) {' | |||||
821 | var data = {}; |
|
821 | var data = {}; | |
822 | data.input = this.get_code(); |
|
822 | data.input = this.get_code(); | |
823 | data.cell_type = 'code'; |
|
823 | data.cell_type = 'code'; | |
824 |
if (this.input_prompt_number |
|
824 | if (this.input_prompt_number) { | |
825 | data.prompt_number = this.input_prompt_number; |
|
825 | data.prompt_number = this.input_prompt_number; | |
826 | }; |
|
826 | }; | |
827 | var outputs = []; |
|
827 | var outputs = []; |
General Comments 0
You need to be logged in to leave comments.
Login now