Google Colab is not rendering Mathjax output of python cell's generated with sympy. Instead of getting a graphic output I'm getting the markdown commands that would generate the ouput.
For instance, the code below:
import numpy as np
import sympy as sp
x1 = np.array([1,1,1,1]).reshape(-1,1)
x2 = np.array([2,3,4,5]).reshape(-1,1)
x3 = np.array([3,4,5,6]).reshape(-1,1)
A = np.concatenate([x1,x2,x3],axis=1)
A = sp.Matrix(A)
x = sp.Matrix([1,1,1])
sp.init_printing(use_latex='mathjax')
A,x
gives me as output the string:
$\displaystyle \left( \left[\begin{matrix}1 & 2 & 3\1 & 3 & 4\1 & 4 & 5\1 & 5 & 6\end{matrix}\right], \ \left[\begin{matrix}1\1\1\end{matrix}\right]\right)$
instead of the rendered image itself.