class_docstr: A Python execution environment.
  
  Encapsulates a namespace for variable lookup
class_docstr_tok: ["A","Python","execution","environment",".","Encapsulates","a","namespace","for","variable","lookup"]
docstr: Evaluate some Python code in the encapsulated environment.
  
  Parameters
  ----------
  
  expr :
      A string containing a Python expression.
  
  inner_namespace :
      A dict-like object that will be checked first when `expr` attempts
      to access any variables.
  
  Returns
  -------
  :
      The value of `expr`.
docstr_tok: ["Evaluate","some","Python","code","in","the","encapsulated","environment",".","Parameters","--","--","--","--","--","expr",":","A","string","containing","a","Python","expression",".","inner_namespace",":","A","dict-like","object","that","will","be","checked","first","when","`","expr","`","attempts","to","access","any","variables",".","Returns","--","--","--","-",":","The","value","of","`","expr","`","."]
code: def eval(self, expr: str, inner_namespace: SupportsGetItem = {}):
      """
      Evaluate some Python code in the encapsulated environment.
  
      Parameters
      ----------
  
      expr :
          A string containing a Python expression.
  
      inner_namespace :
          A dict-like object that will be checked first when `expr` attempts
          to access any variables.
  
      Returns
      -------
      :
          The value of `expr`.
      """
      code = _compile_eval(expr)
      return eval(
          code, {}, StackedLookup([inner_namespace] + self.namespaces)
      )
  
imports: from __future__ import annotations
  from collections.abc import MutableMapping
  from contextlib import suppress
  from dataclasses import dataclass
  from functools import lru_cache
  from typing import TYPE_CHECKING
label_desc: Use image node_id 3 for calling the Environment obj's underlying member method code with example usage: obj.eval(expr, inner_namespace) and returns: eval