##// END OF EJS Templates
update parallel %autopx magics to reflect recent changes in run_cell, run_code
MinRK -
Show More
@@ -185,17 +185,21 b' class ParalleMagic(Plugin):'
185 185 print '[stdout:%i]'%eid, stdout[i]
186 186
187 187
188 def pxrun_cell(self, cell, store_history=True):
188 def pxrun_cell(self, raw_cell, store_history=True):
189 189 """drop-in replacement for InteractiveShell.run_cell.
190 190
191 191 This executes code remotely, instead of in the local namespace.
192 192
193 193 See InteractiveShell.run_cell for details.
194 194 """
195
196 if (not raw_cell) or raw_cell.isspace():
197 return
198
195 199 ipself = self.shell
196 raw_cell = cell
200
197 201 with ipself.builtin_trap:
198 cell = ipself.prefilter_manager.prefilter_lines(cell)
202 cell = ipself.prefilter_manager.prefilter_lines(raw_cell)
199 203
200 204 # Store raw and processed history
201 205 if store_history:
@@ -244,7 +248,7 b' class ParalleMagic(Plugin):'
244 248 self._maybe_display_output(result)
245 249 return False
246 250
247 def pxrun_code(self, code_obj, post_execute=True):
251 def pxrun_code(self, code_obj):
248 252 """drop-in replacement for InteractiveShell.run_code.
249 253
250 254 This executes code remotely, instead of in the local namespace.
General Comments 0
You need to be logged in to leave comments. Login now