Yes, the syntax has changed because you can now mix cadabra with python in one notebook. What used to be "!!" is now the repeat=True
flag, so
substitute(_, rule, repeat=True);
Look around the tutorials to see examples of other things you can do. I hope to have a new proper manual out sometime this fall.