Show More
@@ -191,6 +191,9 b' div.cell {' | |||||
191 | div.code_cell { |
|
191 | div.code_cell { | |
192 | background-color: white; |
|
192 | background-color: white; | |
193 | } |
|
193 | } | |
|
194 | /* any special styling for code cells that are currently running goes here */ | |||
|
195 | div.code_cell.running { | |||
|
196 | } | |||
194 |
|
197 | |||
195 | div.prompt { |
|
198 | div.prompt { | |
196 | /* This needs to be wide enough for 3 digit prompt numbers: In[100]: */ |
|
199 | /* This needs to be wide enough for 3 digit prompt numbers: In[100]: */ |
@@ -691,6 +691,7 b' var IPython = (function (IPython) {' | |||||
691 | var cell = this.cell_for_msg(reply.parent_header.msg_id); |
|
691 | var cell = this.cell_for_msg(reply.parent_header.msg_id); | |
692 | if (msg_type === "execute_reply") { |
|
692 | if (msg_type === "execute_reply") { | |
693 | cell.set_input_prompt(content.execution_count); |
|
693 | cell.set_input_prompt(content.execution_count); | |
|
694 | cell.element.removeClass("running"); | |||
694 | this.dirty = true; |
|
695 | this.dirty = true; | |
695 | } else if (msg_type === "complete_reply") { |
|
696 | } else if (msg_type === "complete_reply") { | |
696 | cell.finish_completing(content.matched_text, content.matches); |
|
697 | cell.finish_completing(content.matched_text, content.matches); | |
@@ -830,6 +831,7 b' var IPython = (function (IPython) {' | |||||
830 | if (cell instanceof IPython.CodeCell) { |
|
831 | if (cell instanceof IPython.CodeCell) { | |
831 | cell.clear_output(true, true, true); |
|
832 | cell.clear_output(true, true, true); | |
832 | cell.set_input_prompt('*'); |
|
833 | cell.set_input_prompt('*'); | |
|
834 | cell.element.addClass("running"); | |||
833 | var code = cell.get_code(); |
|
835 | var code = cell.get_code(); | |
834 | var msg_id = that.kernel.execute(cell.get_code()); |
|
836 | var msg_id = that.kernel.execute(cell.get_code()); | |
835 | that.msg_cell_map[msg_id] = cell.cell_id; |
|
837 | that.msg_cell_map[msg_id] = cell.cell_id; |
General Comments 0
You need to be logged in to leave comments.
Login now