Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

add shutdown to Views

  • Loading branch information...
commit 037d01b031789f51a3b61061435a808639bf7825 1 parent a6a0636
@minrk minrk authored
Showing with 8 additions and 0 deletions.
  1. +8 −0 IPython/parallel/view.py
View
8 IPython/parallel/view.py
@@ -276,6 +276,14 @@ def purge_results(self, jobs=[], targets=[]):
targets = self.targets
return self.client.purge_results(jobs=jobs, targets=targets)
+ def shutdown(self, targets=None, restart=False, hub=False, block=None):
+ """Terminates one or more engine processes, optionally including the hub.
+ """
+ block = self.block if block is None else block
+ if targets is None or targets == 'all':
+ targets = self.targets
+ return self.client.shutdown(targets=targets, restart=restart, hub=hub, block=block)
+
@spin_after
def get_result(self, indices_or_msg_ids=None):
"""return one or more results, specified by history index or msg_id.
Please sign in to comment.
Something went wrong with that request. Please try again.