Latex expressions in pandas dataframes not rendering in vscode

I am trying to set some labels and the caption of my dataframe using mathjax, but it doesn't render in vscode.

For example, when I do

import pandas as pd
test = pd.DataFrame(index=["$\sigma$"])

I get this as output in my jupyter notebook:


Instead of the letter σ. I get the right results if I do the same thing in JupyterLab (in Google Chrome).

Note: Other packages that use mathjax seem to be working fine. Printing latex expressions in matplotlib, sympy and even cells marked with '%%latex' work fine.

How many English words
do you know?
Test your English vocabulary size, and measure
how many words do you know
Online Test
Powered by Examplum