Permalink
Browse files

clear In[] prompt numbers on "Clear All Output"

  • Loading branch information...
1 parent 2464446 commit c17d0355cb2b234e9c18b68d67fdc1baf9ab1066 @ivanov committed Apr 17, 2012
Showing with 3 additions and 0 deletions.
  1. +3 −0 IPython/frontend/html/notebook/static/js/notebook.js
View
3 IPython/frontend/html/notebook/static/js/notebook.js
@@ -874,6 +874,9 @@ var IPython = (function (IPython) {
for (var i=0; i<ncells; i++) {
if (cells[i] instanceof IPython.CodeCell) {
cells[i].clear_output(true,true,true);
+ // Make all In[] prompts blank, as well
+ // TODO: make this configurable (via checkbox?)
+ cells[i].set_input_prompt();
}
};
this.dirty = true;

0 comments on commit c17d035

Please sign in to comment.