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