Ask Your Question

xentity1x's profile - activity

2023-07-06 03:51:44 +0200 received badge  Nice Question (source)
2016-06-15 22:51:08 +0200 received badge  Famous Question (source)
2016-02-14 22:47:03 +0200 received badge  Popular Question (source)
2016-02-14 22:47:03 +0200 received badge  Notable Question (source)
2015-12-16 22:14:53 +0200 received badge  Student (source)
2015-12-16 19:58:58 +0200 asked a question Render Latex in IPython notebook and display on output line

So let's say I generate a Latex expression like so

def polar_gradient(f):
    return (derivative(f, x), derivative(f, r), derivative(f,theta)) 

x, r, theta = var('x', 'r', 'theta')
f = r * sin(theta)
grad = polar_gradient(f)
expr=latex(grad)

Is there a way I can render expr and display it on the output line in an Ipython notebook?