From 1dc55eb27fd7d8f56d37f03c11d8b5e9dfdb4263 2011-04-29 17:18:57 From: MinRK Date: 2011-04-29 17:18:57 Subject: [PATCH] don't flush displayhook if caching is disabled --- diff --git a/IPython/core/interactiveshell.py b/IPython/core/interactiveshell.py index 30a70da..3761dc8 100644 --- a/IPython/core/interactiveshell.py +++ b/IPython/core/interactiveshell.py @@ -1049,7 +1049,8 @@ class InteractiveShell(Configurable, Magic): 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: