Permalink
Browse files

Reset execution counter after cache is cleared.

  • Loading branch information...
1 parent adba85c commit 60799a135616d19958c0c21f6d056e8b78c38712 @stefanv committed Aug 20, 2011
Showing with 2 additions and 0 deletions.
  1. +2 −0 IPython/core/displayhook.py
View
2 IPython/core/displayhook.py
@@ -327,3 +327,5 @@ def flush(self):
# TODO: Is this really needed?
gc.collect()
+ self.shell.execution_count = 0
+

0 comments on commit 60799a1

Please sign in to comment.