Created
July 21, 2012 03:43
-
-
Save jasongrout/3154504 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/IPython/zmq/ipkernel.py b/IPython/zmq/ipkernel.py | |
index a0853f7..1af9619 100755 | |
--- a/IPython/zmq/ipkernel.py | |
+++ b/IPython/zmq/ipkernel.py | |
@@ -328,6 +328,7 @@ def execute_request(self, stream, ident, parent): | |
content = parent[u'content'] | |
code = content[u'code'] | |
silent = content[u'silent'] | |
+ store_history = content.get(u'store_history', not silent) | |
except: | |
self.log.error("Got bad msg: ") | |
self.log.error("%s", parent) | |
@@ -363,7 +364,7 @@ def execute_request(self, stream, ident, parent): | |
reply_content = {} | |
try: | |
# FIXME: the shell calls the exception handler itself. | |
- shell.run_cell(code, store_history=not silent, silent=silent) | |
+ shell.run_cell(code, store_history=store_history, silent=silent) | |
except: | |
status = u'error' | |
# FIXME: this code right now isn't being used yet by default, |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment