parameters: (self)
docstring: import code
  
          code.InteractiveConsole({
              'dump_stacktraces': dump_stacktraces,
              'sys': sys,
              'os': os,
              'socket': socket,
              'traceback': traceback,
          }).interact()
docstring_summary: import code
docstring_tokens: import code
function: def interact(self):
          dump_stacktraces()
          from veles.interaction import Shell
  
          Shell.fix_netcat_colors()
          shell = Shell(self.workflow, name="Manhole")
          shell.thread_pool.pause()
          shell.initialize()
          try:
              shell.interact({
                  'dump_stacktraces': dump_stacktraces,
                  'sys': sys,
                  'os': os,
                  'socket': socket,
                  'traceback': traceback,
                  'pause': shell.thread_pool.pause,
                  'resume': shell.thread_pool.resume,
              })
          except (EOFError, BrokenPipeError):
              cry("Client has been dropped.")
          finally:
              shell.workflow.del_ref(shell)
              shell.thread_pool.resume()
          """
          import code
  
          code.InteractiveConsole({
              'dump_stacktraces': dump_stacktraces,
              'sys': sys,
              'os': os,
              'socket': socket,
              'traceback': traceback,
          }).interact()
          """
function_tokens: def interact ( self ) : dump_stacktraces ( ) from veles . interaction import Shell Shell . fix_netcat_colors ( ) shell = Shell ( self . workflow , name = "Manhole" ) shell . thread_pool . pause ( ) shell . initialize ( ) try : shell . interact ( { 'dump_stacktraces' : dump_stacktraces , 'sys' : sys , 'os' : os , 'socket' : socket , 'traceback' : traceback , 'pause' : shell . thread_pool . pause , 'resume' : shell . thread_pool . resume , } ) except ( EOFError , BrokenPipeError ) : cry ( "Client has been dropped." ) finally : shell . workflow . del_ref ( shell ) shell . thread_pool . resume ( )