

def direct_view(self, targets='all'):
    'construct a DirectView object.\n        \n        If no targets are specified, create a DirectView\n        using all engines.\n        \n        Parameters\n        ----------\n        \n        targets: list,slice,int,etc. [default: use all engines]\n            The engines to use for the View\n        '
    single = isinstance(targets, int)
    targets = self._build_targets(targets)[1]
    if single:
        targets = self[0]
    return DirectView(client=self, socket=self._mux_socket, targets=targets)

dataset/ETHPy150Open ipython/ipython-py3k/IPython/parallel/client/client.py Client.direct_view/VarMisuse@44/151 `targets`->`self`