This really makes me want to give SymPy a proper try. And I didn't know about `org-fragtog`, that's really neat!<p>I'm a bit confused about the main idea here: doesn't the usage of `:results raw` mean the output will be inserted multiple times, if the code is re-run? As far as I know `replace` doesn't actually work with `raw`. Would love to be wrong though.