Interpolation of expression inferred from cppyy evaluations

Hi,

I would like to know whether it is possible to use the interpolate routines (or dolfinx.fem.Expression) when the function evaluation comes from cppyy bindings. Something like this wouldn’t work:

u.interpolate(lambda x: cppyy.gbl.my_func(x))

neither it works to define a dolfinx.fem.Expression(...)

Please give a minimal reproducible example.
In theory the lambda function going into interpolate` can do whatever you want, as long as it takes in a (3, num_points) array and returns a (num_components_in_u_function_space, num_points) array.