Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
don't flush displayhook if caching is disabled
  • Loading branch information
minrk committed Apr 29, 2011
1 parent 3fc6efe commit 1dc55eb
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion IPython/core/interactiveshell.py
Expand Up @@ -1049,7 +1049,8 @@ def reset(self, new_session=True):
self.execution_count = 1

# Flush cached output items
self.displayhook.flush()
if self.displayhook.do_full_cache:
self.displayhook.flush()

# Restore the user namespaces to minimal usability
for ns in self.ns_refs_table:
Expand Down

0 comments on commit 1dc55eb

Please sign in to comment.