Show More
@@ -45,13 +45,13 b' def with_output(method):' | |||||
45 | def method_with_output(self, stream, ident, msg): |
|
45 | def method_with_output(self, stream, ident, msg): | |
46 | parent = msg['header'] |
|
46 | parent = msg['header'] | |
47 | self.shell.set_parent(parent) |
|
47 | self.shell.set_parent(parent) | |
48 | self.shell.kernel._publish_status('busy') |
|
48 | self.shell.kernel._publish_status('busy', parent) | |
49 | try: |
|
49 | try: | |
50 | return method(self, stream, ident, msg) |
|
50 | return method(self, stream, ident, msg) | |
51 | finally: |
|
51 | finally: | |
52 | sys.stdout.flush() |
|
52 | sys.stdout.flush() | |
53 | sys.stderr.flush() |
|
53 | sys.stderr.flush() | |
54 | self.shell.kernel._publish_status('idle') |
|
54 | self.shell.kernel._publish_status('idle', parent) | |
55 |
|
55 | |||
56 | return method_with_output |
|
56 | return method_with_output | |
57 |
|
57 |
General Comments 0
You need to be logged in to leave comments.
Login now