Skip to content

Instantly share code, notes, and snippets.

@jasongrout
Created July 21, 2012 03:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jasongrout/3154504 to your computer and use it in GitHub Desktop.
Save jasongrout/3154504 to your computer and use it in GitHub Desktop.
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