This PR implemements _repr_latex_ on symfit models, enabling latex rendering of models in Jupyter notebooks.
Old behavior:
New behavior:
y = Variable('y')
x = Variable('x')
a = Parameter('a_1')
b = Parameter('b')
y2 = Variable('y2')
mu = Parameter('mu_2')
sig = Parameter('sigma')
g = Gaussian(x, mu, sig)
model = Model({
y: a*x+b,
y2: g
})
t = Variable('t')
k = Variable('k')
a = Parameter('A')
b = Parameter('B')
model_dict = {
D(a, t): - k * a**2,
D(b, t): k * a**2,
}
model = Model(model_dict)
This PR implemements
_repr_latex_
on symfit models, enabling latex rendering of models in Jupyter notebooks.Old behavior:
New behavior: