From 788c73834aaf315f85c7d259042d4c7b387c20cc 2012-05-13 22:09:39 From: MinRK Date: 2012-05-13 22:09:39 Subject: [PATCH] expose silent in view.execute --- diff --git a/IPython/parallel/client/view.py b/IPython/parallel/client/view.py index 6b22c2c..ee5804e 100644 --- a/IPython/parallel/client/view.py +++ b/IPython/parallel/client/view.py @@ -593,7 +593,7 @@ class DirectView(View): @sync_results @save_ids - def execute(self, code, targets=None, block=None): + def execute(self, code, silent=True, targets=None, block=None): """Executes `code` on `targets` in blocking or nonblocking manner. ``execute`` is always `bound` (affects engine namespace) @@ -614,7 +614,7 @@ class DirectView(View): msg_ids = [] trackers = [] for ident in _idents: - msg = self.client.send_execute_request(self._socket, code, ident=ident) + msg = self.client.send_execute_request(self._socket, code, silent=silent, ident=ident) msg_ids.append(msg['header']['msg_id']) ar = AsyncResult(self.client, msg_ids, fname='execute', targets=targets) if block: