class_docstr: A set of magics useful when controlling a parallel IPython cluster.
docstr: Print the result of the last asynchronous %px command.
  
  This lets you recall the results of %px computations after
  asynchronous submission (block=False).
  
  Examples
  --------
  ::
  
      In [23]: %px os.getpid()
      Async parallel execution on engine(s): all
  
      In [24]: %pxresult
      Out[8:10]: 60920
      Out[9:10]: 60921
      Out[10:10]: 60922
      Out[11:10]: 60923
docstr_tok: ["Print","the","result","of","the","last","asynchronous","%","px","command",".","This","lets","you","recall","the","results","of","%","px","computations","after","asynchronous","submission","(","block=False",")",".","Examples","--","--","--","--",":",":","In","[","23","]",":","%","px","os.getpid","(",")","Async","parallel","execution","on","engine","(","s",")",":","all","In","[","24","]",":","%","pxresult","Out","[","8:10","]",":","60920","Out","[","9:10","]",":","60921","Out","[","10:10","]",":","60922","Out","[","11:10","]",":","60923"]
code: def result(self, line=""):
      """Print the result of the last asynchronous %px command.
  
      This lets you recall the results of %px computations after
      asynchronous submission (block=False).
  
      Examples
      --------
      ::
  
          In [23]: %px os.getpid()
          Async parallel execution on engine(s): all
  
          In [24]: %pxresult
          Out[8:10]: 60920
          Out[9:10]: 60921
          Out[10:10]: 60922
          Out[11:10]: 60923
      """
      args = magic_arguments.parse_argstring(self.result, line)
  
      if self.last_result is None:
          raise UsageError(NO_LAST_RESULT)
  
      if args.save_name:
          self.shell.user_ns[args.save_name] = self.last_result
          return
  
      self.last_result.get()
      self.last_result.display_outputs(groupby=args.groupby)
  
imports: import time
  from contextlib import contextmanager
  import inspect
  import re
  import sys
  from textwrap import dedent
  from IPython.core import magic_arguments
  from IPython.core.error import UsageError
  from IPython.core.magic import Magics, no_var_expand
  import ipyparallel
  from ..None import error
label_desc: Use image node_id 5 for calling the ParallelMagics obj's underlying member method code with example usage: obj.result(line) without return types