You can see in the follwing image, how in Jupyter Lab the column names of a DataFrame can be rendered as LaTeX strings, which improves readability for physics datasets a lot.
I was frequent user of these LaTeX strings before using Panel, and would really like to see this added in the future. Thanks!
You can see in the follwing image, how in Jupyter Lab the column names of a DataFrame can be rendered as LaTeX strings, which improves readability for physics datasets a lot.
I was frequent user of these LaTeX strings before using Panel, and would really like to see this added in the future. Thanks!
Here is the Code:
import pandas as pd import panel as pn pn.extension() pn.extension('mathjax', 'katex') df = pd.DataFrame([[1,2,3,4]], columns=[r'$$\text{Mean } x$$', r'$$\frac{\partial x}{\partial t}$$', r'$$\frac{\partial x}{\partial y}$$', r'$$\frac{\partial x}{\partial z}$$']) pn.pane.DataFrame(df)