Skip to content
Browse files

include execution_count in pyin msgs, closes #1619

  • Loading branch information...
1 parent 2464446 commit 02cd538ab7faebfce10cd5b36d26bc0295b5c5af @ivanov committed
Showing with 4 additions and 4 deletions.
  1. +4 −4 IPython/zmq/ipkernel.py
View
8 IPython/zmq/ipkernel.py
@@ -226,11 +226,11 @@ def record_ports(self, ports):
# Kernel request handlers
#---------------------------------------------------------------------------
- def _publish_pyin(self, code, parent):
+ def _publish_pyin(self, code, parent, execution_count):
"""Publish the code request on the pyin stream."""
- self.session.send(self.iopub_socket, u'pyin', {u'code':code},
- parent=parent)
+ self.session.send(self.iopub_socket, u'pyin', {u'code':code,
+ u'execution_count': execution_count}, parent=parent)
def execute_request(self, ident, parent):
@@ -271,7 +271,7 @@ def execute_request(self, ident, parent):
# Re-broadcast our input for the benefit of listening clients, and
# start computing output
if not silent:
- self._publish_pyin(code, parent)
+ self._publish_pyin(code, parent, shell.execution_count)
reply_content = {}
try:

0 comments on commit 02cd538

Please sign in to comment.
Something went wrong with that request. Please try again.