Hello I have a problem that I cant display a simple pandas table whitch has Latex expressions in it.
- I have a simple python script:
x = 1;
x1 = 2;
my_dict = {'Case1':{'Formula1':'$$x^{-1}$$', 'Formula2':'$$x^2$$', 'Formula3':x},
'Case2':{'Formula1':'$$x^{-2}$$', 'Formula2':'$$x^4$$', 'Formula3':x1}}
df = pd.DataFrame(my_dict)
display(df.transpose())
When I am using Jupyter Notebook it works fine like this: Example in Jupyter Notebook
but when I opened the same code in Google collab it is showing like this:
Formula1 Formula2 Formula3
Case1 $$x^{-1}$$ $$x^2$$ 1
Case2 $$x^{-2}$$ $$x^4$$ 2
Is there something I can do to make Google collab display it like Jupyter notebook ?