The `%%` syntax is specific to IPython. maybe we can move the `if magic_language` into the ipython block ?