class_docstr: A set of magics useful when controlling a parallel IPython cluster.
docstr: Executes the given python command in parallel.
  
  Examples
  --------
  ::
  
      In [24]: %px a = os.getpid()
      Parallel execution on engine(s): all
  
      In [25]: %px print a
      [stdout:0] 1234
      [stdout:1] 1235
      [stdout:2] 1236
      [stdout:3] 1237
docstr_tok: ["Executes","the","given","python","command","in","parallel",".","Examples","--","--","--","--",":",":","In","[","24","]",":","%","px","a","=","os.getpid","(",")","Parallel","execution","on","engine","(","s",")",":","all","In","[","25","]",":","%","px","print","a","[","stdout:0","]","1234","[","stdout:1","]","1235","[","stdout:2","]","1236","[","stdout:3","]","1237"]
code: def px(self, line=""):
      """Executes the given python command in parallel.
  
      Examples
      --------
      ::
  
          In [24]: %px a = os.getpid()
          Parallel execution on engine(s): all
  
          In [25]: %px print a
          [stdout:0] 1234
          [stdout:1] 1235
          [stdout:2] 1236
          [stdout:3] 1237
      """
      return self.parallel_execute(line)
  
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 6 for calling the ParallelMagics obj's underlying member method code with example usage: obj.px(line) and returns: self