Warning
This documentation is for an old version of IPython. You can find docs for newer versions here.
Remote Functions and decorators for Views.
Authors:
Bases: object
Turn an existing function into a remote function.
Parameters: | view : View instance
f : callable
block : bool [default: None]
**flags : remaining kwargs are passed to View.temp_flags |
---|
Bases: IPython.parallel.client.remotefunction.RemoteFunction
Class for mapping a function to sequences.
This will distribute the sequences according the a mapper, and call the function on each sub-sequence. If called via map, then the function will be called once on each element, rather that each sub-sequence.
Parameters: | view : View instance
f : callable
dist : str [default: ‘b’]
block : bool [default: None]
chunksize : int or None
ordered : bool [default: True]
**flags : remaining kwargs are passed to View.temp_flags |
---|
call a function on each element of one or more sequence(s) remotely. This should behave very much like the builtin map, but return an AsyncMapResult if self.block is False.
That means it can take generators (will be cast to lists locally), and mismatched sequence lengths will be padded with None.
Turn a function into a remote function.
This method can be used for map:
Turn a function into a parallel remote function.
This method can be used for map:
Get the name of an object.
For use in case of callables that are not functions, and thus may not have __name__ defined.
Order: f.__name__ > f.name > str(f)
sync relevant results from self.client to our results attribute.
This is a clone of view.sync_results, but for remote functions