Skip to content

Commit

Permalink
clear In[] prompt numbers on "Clear All Output"
Browse files Browse the repository at this point in the history
  • Loading branch information
ivanov committed Apr 18, 2012
1 parent 2464446 commit c17d035
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions IPython/frontend/html/notebook/static/js/notebook.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit c17d035

Please sign in to comment.