Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

html in column names #213

Closed
r-leyshon opened this issue Dec 10, 2023 · 2 comments · Fixed by #214
Closed

html in column names #213

r-leyshon opened this issue Dec 10, 2023 · 2 comments · Fixed by #214

Comments

@r-leyshon
Copy link

I was attempting to use itables to present units in the column name. I found that the HTML tags work well in cell values but not in table headers:

from itables import show
test_df = pd.DataFrame(
    {"some_nm<sup>2</sup>": ["some val <sup>2</sup>", "<b>Bold Value</b>"]}
    )
show(test_df)
image
@mwouts
Copy link
Owner

mwouts commented Dec 10, 2023

Hey @r-leyshon , thanks for reporting this! This should be fixed in itables==1.6.3, would you mind giving it a try? Thanks

@r-leyshon
Copy link
Author

@mwouts awesome, and just in time for our presentation. Many thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants