class_docstr: A set of magics useful when controlling a parallel IPython cluster.
docstr: Enable %autopx mode by saving the original run_cell and installing
  pxrun_cell.
docstr_tok: ["Enable","%","autopx","mode","by","saving","the","original","run_cell","and","installing","pxrun_cell","."]
code: def _enable_autopx(self):
      """Enable %autopx mode by saving the original run_cell and installing
      pxrun_cell.
      """
      self._original_run_cell = self.shell.run_cell
      self._original_run_nodes = self.shell.run_ast_nodes
  
      pxrun_cell = self.pxrun_cell
      if _iscoroutinefunction(self.shell.run_cell):
          # original is a coroutine,
          # wrap ours in a coroutine
          pxrun_cell = _asyncify(pxrun_cell)
      self.shell.run_cell = pxrun_cell
  
      pxrun_nodes = self.pxrun_nodes
      if _iscoroutinefunction(self.shell.run_ast_nodes):
          # original is a coroutine,
          # wrap ours in a coroutine
          pxrun_nodes = _asyncify(pxrun_nodes)
      self.shell.run_ast_nodes = pxrun_nodes
  
      self._autopx = True
      print("%autopx enabled")
  
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 10 for calling the ParallelMagics obj's underlying member method code with example usage: obj._enable_autopx() without return types