Show More
@@ -126,6 +126,13 b' class ExecutePreprocessor(Preprocessor):' | |||
|
126 | 126 | msg_type = msg['msg_type'] |
|
127 | 127 | self.log.debug("output: %s", msg_type) |
|
128 | 128 | content = msg['content'] |
|
129 | out = NotebookNode(output_type=self.msg_type_map.get(msg_type, msg_type)) | |
|
130 | ||
|
131 | # set the prompt number for the input and the output | |
|
132 | if 'execution_count' in content: | |
|
133 | cell['prompt_number'] = content['execution_count'] | |
|
134 | out.prompt_number = content['execution_count'] | |
|
135 | ||
|
129 | 136 | if msg_type == 'status': |
|
130 | 137 | if content['execution_state'] == 'idle': |
|
131 | 138 | break |
@@ -137,13 +144,6 b' class ExecutePreprocessor(Preprocessor):' | |||
|
137 | 144 | outs = [] |
|
138 | 145 | continue |
|
139 | 146 | |
|
140 | out = NotebookNode(output_type=self.msg_type_map.get(msg_type, msg_type)) | |
|
141 | ||
|
142 | # set the prompt number for the input and the output | |
|
143 | if 'execution_count' in content: | |
|
144 | cell['prompt_number'] = content['execution_count'] | |
|
145 | out.prompt_number = content['execution_count'] | |
|
146 | ||
|
147 | 147 | if msg_type == 'stream': |
|
148 | 148 | out.stream = content['name'] |
|
149 | 149 | out.text = content['data'] |
General Comments 0
You need to be logged in to leave comments.
Login now