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