Hi jsem.
Firstly, I'd recommend that when asking for help you would include a "complete" example of your code (aka minimal working example or MWE), because there are some needed background definitions you are using. Cover that, let's move to your code.
- The algorithm
apply_through
is part of a module, cdb.core.manip
which has to be imported using import cdb.core.manip as manip
.
- The operator you want to apply has to be surrounded by dollar signs,
$\partial_{\rho}{#}$
.
That's mainly it!
Let me put it all together in an example
import cdb.core.manip as manip
{\mu,\nu,\rho}::Indices.
D{#}::Derivative.
\partial{#}::PartialDerivative.
{A{#},B{#}}::Depends(\partial{#},D{#}).
# ex := A_{\mu \nu} = B_{\mu \nu};
manip.apply_through($A_{\mu \nu} = B_{\mu \nu}$, $\partial_{\rho}{#}$);
manip.apply_through(ex, $D{#}$);
Hope this would be helpful.