#!/usr/bin/env python # coding: utf-8 # In[1]: from IPython import display # In the previous notebook we tried to modify the CSS of the NB output HTML. Some of the CSS properties we set were applied, but annoyingly not all of them. The reason was that the NB CSS stylesheet for the `.output_html` sections overrides some of our choices. # # So, lets see if we can make our choices `!important` # In[3]: styles = display.HTML("""""") display.display(styles) tbl = display.HTML("""
Title1 Title 2
Value 1 Value 2
Something else
""") display.display(tbl) # Great, that worked. But we still don't know which properties we set will be overridden. This works but doesn't seem like a great solution... # In[ ]: