class_docstr: Turn an existing function into a remote function.
  
  Parameters
  ----------
  
  view : View instance
      The view to be used for execution
  f : callable
      The function to be wrapped into a remote function
  block : bool [default: None]
      Whether to wait for results or not.  The default behavior is
      to use the current `block` attribute of `view`
  
  **flags : remaining kwargs are passed to View.temp_flags
class_docstr_tok: ["Turn","an","existing","function","into","a","remote","function",".","Parameters","--","--","--","--","--","view",":","View","instance","The","view","to","be","used","for","execution","f",":","callable","The","function","to","be","wrapped","into","a","remote","function","block",":","bool","[","default",":","None","]","Whether","to","wait","for","results","or","not",".","The","default","behavior","is","to","use","the","current","`","block","`","attribute","of","`","view","`","*","*","flags",":","remaining","kwargs","are","passed","to","View.temp_flags"]
code: def __init__(self, view, f, block=None, **flags):
      self.view = view
      self.func = f
      self.block = block
      self.flags = flags
  
      # copy function attributes for nicer inspection
      # of decorated functions
      self.__name__ = getname(f)
      if getattr(f, "__doc__", None):
          self.__doc__ = "{} wrapping:\n{}".format(
              self.__class__.__name__,
              f.__doc__,
          )
      if getattr(f, "__signature__", None):
          self.__signature__ = f.__signature__
      else:
          try:
              self.__signature__ = signature(f)
          except Exception:
              # no signature, but that's okay
              pass
  
file_path: ipyparallel/ipyparallel/client/remotefunction.py
imports: import sys
  import warnings
  from inspect import signature
  from decorator import decorator
  from ..serialize import PrePickled
  from .None import map
  from .asyncresult import AsyncMapResult
label_desc: Use image node_id 1 to create a new RemoteFunction object  with example: obj = RemoteFunction(view, f, block)