jhourback
jhourback

Reputation: 4571

How to include border around cells when using IPython.display of Pandas table in Jupyter Notebook

In Python 3.4, the cells were easy to see because they had a black border around them. In Python 3.5, the this border has been replaced with a more subtle white/grey shading, which makes the cells blend together visually. I want to add a black border like Python 3.4 used to use. Is this possible?

Upvotes: 4

Views: 2177

Answers (1)

James Draper
James Draper

Reputation: 5310

You can add something like this to your .jupyter\custom\custom.css file:

.rendered_html table, .rendered_html th, .rendered_html tr, .rendered_html td {
  border: 1px  black solid !important;
  color: black !important;
}

You can read more about customizing jupyter notebook here.

Upvotes: 3

Related Questions