def remote_interpreter(conn, namespace=None):
 if (namespace is None):
  namespace = {'conn': conn}
 std = RedirectedStd(conn)
 try:
  std.redirect()
  conn.modules[__name__]._remote_interpreter_server_side(**namespace)
 finally:
  std.restore()

def remote_interpreter ( conn , namespace = None ) : if ( namespace is None ) : namespace = { 'conn' : conn } std = RedirectedStd ( conn ) try : std . redirect ( ) conn . modules [ __name__ ] . _remote_interpreter_server_side ( ** namespace ) finally : std . restore ( )
starts an interactive interpreter on the server .