I think you need r"""" to render the latex part correctly