public
Created

  • Download Gist
gistfile1.diff
Diff
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
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,

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.