bundles / IPython 9.3.0 / IPython / core / guarded_eval / guarded_eval
function
IPython.core.guarded_eval:guarded_eval
Signature
def guarded_eval ( code : str , context : EvaluationContext ) Summary
Evaluate provided code in the evaluation context.
Extended Summary
If evaluation policy given by context is set to forbidden no evaluation will be performed; if it is set to dangerous standard eval will be used; finally, for any other, policy eval_node will be called on parsed AST.
Aliases
-
IPython.core.completer.guarded_eval