How to use pandas Styler with nbdev for better table display

Pandas Styler is a great way to format DataFrames for better display.

The figure below shows a minimal example where I hide the index and format numbers according to my taste. The output looks great, as expected in the notebook:

However, it looks much worse on the nbdev generated HTML, which is not expected since nbdev have a good table display by default.


Any tips to improve Styled table display?