##// END OF EJS Templates
include execution_count in pyin msgs, closes #1619
Paul Ivanov -
Show More
@@ -226,11 +226,11 b' class Kernel(Configurable):'
226 # Kernel request handlers
226 # Kernel request handlers
227 #---------------------------------------------------------------------------
227 #---------------------------------------------------------------------------
228
228
229 def _publish_pyin(self, code, parent):
229 def _publish_pyin(self, code, parent, execution_count):
230 """Publish the code request on the pyin stream."""
230 """Publish the code request on the pyin stream."""
231
231
232 self.session.send(self.iopub_socket, u'pyin', {u'code':code},
232 self.session.send(self.iopub_socket, u'pyin', {u'code':code,
233 parent=parent)
233 u'execution_count': execution_count}, parent=parent)
234
234
235 def execute_request(self, ident, parent):
235 def execute_request(self, ident, parent):
236
236
@@ -271,7 +271,7 b' class Kernel(Configurable):'
271 # Re-broadcast our input for the benefit of listening clients, and
271 # Re-broadcast our input for the benefit of listening clients, and
272 # start computing output
272 # start computing output
273 if not silent:
273 if not silent:
274 self._publish_pyin(code, parent)
274 self._publish_pyin(code, parent, shell.execution_count)
275
275
276 reply_content = {}
276 reply_content = {}
277 try:
277 try:
General Comments 0
You need to be logged in to leave comments. Login now