class_docstr: A set of magics useful when controlling a parallel IPython cluster.
code: def __init__(self, shell, view, suffix=""):
      self.view = view
      self.suffix = suffix
  
      # register magics
      self.magics = dict(cell={}, line={})
      line_magics = self.magics["line"]
  
      px = "px" + suffix
      if not suffix:
          # keep %result for legacy compatibility
          line_magics["result"] = self.result
  
      line_magics["pxresult" + suffix] = self.result
      line_magics[px] = self.px
      line_magics["pxconfig" + suffix] = self.pxconfig
      line_magics["auto" + px] = self.autopx
  
      self.magics["cell"][px] = self.cell_px
  
      super().__init__(shell=shell)
  
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 1 to create a new ParallelMagics object from inherited base classes: Magics with example: obj = ParallelMagics(shell, view, suffix)