parameters: (cls, expression, trace_id=None, globals_dict={}, print_out=False)
return_statement: return (out_str, err_str)
docstring: Evaluate expression; return output string, if print_out is True,
          Use the argument variables associated with trace_id as the context.
          If trace_id is None, use last trace context.
          If trace_id is not recognized, or is set to null string, the default context is used.
          Returns tuple (out_str, err_str)
docstring_summary: Evaluate expression; return output string, if print_out is True,
          Use the argument variables associated with trace_id as the context.
          If trace_id is None, use last trace context.
          If trace_id is not recognized, or is set to null string, the default context is used.
          Returns tuple (out_str, err_str)
docstring_tokens: Evaluate expression ; return output string if print_out is True Use the argument variables associated with trace_id as the context . If trace_id is None use last trace context . If trace_id is not recognized or is set to null string the default context is used . Returns tuple ( out_str err_str )
function: def evaluate_in_context(cls, expression, trace_id=None, globals_dict={}, print_out=False):
          """ Evaluate expression; return output string, if print_out is True,
          Use the argument variables associated with trace_id as the context.
          If trace_id is None, use last trace context.
          If trace_id is not recognized, or is set to null string, the default context is used.
          Returns tuple (out_str, err_str)
          """
          context = None
          if trace_id is None:
              recent_traces = cls.base_context[RECENT_DIR].get("traces")
              if recent_traces:
                  trace_id = recent_traces.keys()[0]
                  context = cls.base_context[RECENT_DIR]["traces"][trace_id]
          else:
              context = cls.base_context[ALL_DIR].get(trace_id)
  
          if not context:
              context = cls.default_context
          
          out_str, err_str = cls.interpreter.evaluate(expression, locals_dict=context,
                                                      globals_dict=globals_dict, print_out=print_out)
          if err_str is None:
              err_str = out_str
              out_str = ""
          return (out_str, err_str)
function_tokens: def evaluate_in_context ( cls , expression , trace_id = None , globals_dict = { } , print_out = False ) : context = None if trace_id is None : recent_traces = cls . base_context [ RECENT_DIR ] . get ( "traces" ) if recent_traces : trace_id = recent_traces . keys ( ) [ 0 ] context = cls . base_context [ RECENT_DIR ] [ "traces" ] [ trace_id ] else : context = cls . base_context [ ALL_DIR ] . get ( trace_id ) if not context : context = cls . default_context out_str , err_str = cls . interpreter . evaluate ( expression , locals_dict = context , globals_dict = globals_dict , print_out = print_out ) if err_str is None : err_str = out_str out_str = "" return ( out_str , err_str )