Show More
@@ -284,15 +284,19 b' class Kernel(Configurable):' | |||||
284 | def _publish_pyin(self, code, parent, execution_count): |
|
284 | def _publish_pyin(self, code, parent, execution_count): | |
285 | """Publish the code request on the pyin stream.""" |
|
285 | """Publish the code request on the pyin stream.""" | |
286 |
|
286 | |||
287 |
self.session.send(self.iopub_stream, u'pyin', |
|
287 | self.session.send(self.iopub_stream, u'pyin', | |
288 |
u'execution_count': execution_count}, |
|
288 | {u'code':code, u'execution_count': execution_count}, | |
|
289 | parent=parent, | |||
|
290 | ) | |||
289 |
|
291 | |||
290 | def execute_request(self, stream, ident, parent): |
|
292 | def execute_request(self, stream, ident, parent): | |
291 |
|
293 | |||
292 | self.session.send(self.iopub_stream, |
|
294 | self.session.send(self.iopub_stream, | |
293 | u'status', |
|
295 | u'status', | |
294 | {u'execution_state':u'busy'}, |
|
296 | {u'execution_state':u'busy'}, | |
295 |
parent=parent |
|
297 | parent=parent, | |
|
298 | ident='status', | |||
|
299 | ) | |||
296 |
|
300 | |||
297 | try: |
|
301 | try: | |
298 | content = parent[u'content'] |
|
302 | content = parent[u'content'] |
General Comments 0
You need to be logged in to leave comments.
Login now