Skip to content

Instantly share code, notes, and snippets.

@SrMouraSilva
Created January 2, 2021 22:30
Show Gist options
  • Save SrMouraSilva/1a4d7dceb6b815ef60501cd6cae74df9 to your computer and use it in GitHub Desktop.
Save SrMouraSilva/1a4d7dceb6b815ef60501cd6cae74df9 to your computer and use it in GitHub Desktop.
Plot latex
import sympy as sp
Math(sp.latex(f"""
\\begin{{aligned}}
p(\\boldsymbol{{w}}|\mathcal{{D}}) &= \mathcal{{N}}(\\boldsymbol{{w}}|\\boldsymbol{{\mu}}, \\boldsymbol{{\Sigma}}), \\\\
\\boldsymbol{{\mu}} &= {sp.latex(sp.Matrix(modelo_1.μ))}, \\\\
\\boldsymbol{{\Sigma}} &= {sp.latex(sp.Matrix(modelo_1.Σ))}.
\\end{{aligned}}
"""))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment