Rendering sympy equations requires MathJax to be available within each cell output. The following is a function that will make this happen.
from IPython.display import Math, HTML
def enable_sympy_in_cell():
display(HTML("<script src='https://cdn.staticfile.org/"
"mathjax/2.7.3/latest.js?config=default'></script>"))
get_ipython().events.register('pre_run_cell', enable_sympy_in_cell)
After registering this hook, SymPy rendering will work correctly:
import sympy
from sympy import *
init_printing()
x, y, z = symbols('x y z')
Integral(sqrt(1/x), (x, 0, oo))