Skip to content
Create a gist now

Instantly share code, notes, and snippets.

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
Something went wrong with that request. Please try again.