The View class
The ipyparallel
module declares a View
class to provide views of engines. The View
class itself is not meant for use. It should probably be treated as an abstract base class for most purposes. However, it does have two useful subclasses: DirectView
and LoadBalancedView
. We will cover the functionality provided by View
in this section, and the differences introduced by DirectView
and LoadBalancedView
in their own sections.
View attributes
View
provides some useful attributes:
Attribute |
Meaning |
---|---|
|
A list of message IDs. |
|
The set of message IDs of jobs that are not complete. |
|
A dict of |
|
The IDs of engines in the current active set. Functions that are applied, mapped, ... |
Get Mastering IPython 4.0 now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.