We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents db8f354 + 0ba517e commit d27436aCopy full SHA for d27436a
ipyparallel/client/asyncresult.py
@@ -170,11 +170,10 @@ def stream_output(self):
170
171
# Keep a handle on the futures so we can remove the callback later
172
future_callbacks = {}
173
- for eid, msg_id in zip(self._targets, self.msg_ids):
+ for eid, msg_future in zip(self._targets, self._children):
174
callback_func = partial(self._iopub_streaming_output_callback, eid)
175
- f = self._client._futures[msg_id]
176
- future_callbacks[f] = callback_func
177
- f.iopub_callbacks.append(callback_func)
+ future_callbacks[msg_future] = callback_func
+ msg_future.iopub_callbacks.append(callback_func)
178
179
try:
180
yield
0 commit comments