##// END OF EJS Templates
expose silent in view.execute
MinRK -
Show More
@@ -593,7 +593,7 b' class DirectView(View):'
593 593
594 594 @sync_results
595 595 @save_ids
596 def execute(self, code, targets=None, block=None):
596 def execute(self, code, silent=True, targets=None, block=None):
597 597 """Executes `code` on `targets` in blocking or nonblocking manner.
598 598
599 599 ``execute`` is always `bound` (affects engine namespace)
@@ -614,7 +614,7 b' class DirectView(View):'
614 614 msg_ids = []
615 615 trackers = []
616 616 for ident in _idents:
617 msg = self.client.send_execute_request(self._socket, code, ident=ident)
617 msg = self.client.send_execute_request(self._socket, code, silent=silent, ident=ident)
618 618 msg_ids.append(msg['header']['msg_id'])
619 619 ar = AsyncResult(self.client, msg_ids, fname='execute', targets=targets)
620 620 if block:
General Comments 0
You need to be logged in to leave comments. Login now