def user_expressions(self, expressions):
    "Evaluate a dict of expressions in the user's namespace.\n\n        Parameters\n        ----------\n        expressions : dict\n            A dict with string keys and string values.  The expression values\n            should be valid Python expressions, each of which will be evaluated\n            in the user namespace.\n\n        Returns\n        -------\n        A dict, keyed like the input expressions dict, with the rich mime-typed\n        display_data of each value.\n        "
    out = {}
    user_ns = self.user_ns
    global_ns = self.user_global_ns
    for (key, expr) in expressions.items():
        try:
            value = self._format_user_obj(eval(expr, global_ns, user_ns))
        except:
            value = self._user_obj_error()
        out[key] = value
    return out
Evaluate a dict of expressions in the user's namespace.

Parameters
----------
expressions : dict
    A dict with string keys and string values.  The expression values
    should be valid Python expressions, each of which will be evaluated
    in the user namespace.

Returns
-------
A dict, keyed like the input expressions dict, with the rich mime-typed
display_data of each value.
def user_expressions(self, expressions):
    "Evaluate a dict of expressions in the user's namespace.\n\n        Parameters\n        ----------\n        expressions : dict\n            A dict with string keys and string values.  The expression values\n            should be valid Python expressions, each of which will be evaluated\n            in the user namespace.\n\n        Returns\n        -------\n        A dict, keyed like the input expressions dict, with the rich mime-typed\n        display_data of each value.\n        "
    out = {}
    user_ns = self.user_ns
    global_ns = self.user_global_ns
    for (key, expr) in expressions.items():
        try:
            value = self._format_user_obj(eval(expr, global_ns, user_ns))
        except:
            value = self._user_obj_error()
        out[key] = value
    return out