docstr: Forward raw_input and getpass to the current frontend.
  
  via input_request
docstr_tok: ["Forward","raw_input","and","getpass","to","the","current","frontend",".","via","input_request"]
code: def _forward_input(self, allow_stdin=False):
      """Forward raw_input and getpass to the current frontend.
  
      via input_request
      """
      self._allow_stdin = allow_stdin
  
      if PY3:
          self._sys_raw_input = builtin_mod.input
          builtin_mod.input = self.raw_input
      else:
          self._sys_raw_input = builtin_mod.raw_input
          self._sys_eval_input = builtin_mod.input
          builtin_mod.raw_input = self.raw_input
          builtin_mod.input = lambda prompt="": eval(
              self.raw_input(prompt)
          )
      self._save_getpass = getpass.getpass
      getpass.getpass = self.getpass
  
imports: import getpass
  import sys
  from IPython.core import release
  from ipython_genutils.py3compat import builtin_mod, PY3, unicode_type, safe_unicode
  from IPython.utils.tokenutil import token_at_cursor, line_at_cursor
  from traitlets import Instance, Type, Any, List, Bool
  from .comm import CommManager
  from .kernelbase import Kernel
  from .zmqshell import ZMQInteractiveShell
label_desc: Use image node_id 9 for calling the IPythonKernel obj's underlying member method code with example usage: obj._forward_input(allow_stdin) without return types