在 Python 3.4 中,单元格很容易看到,因为它们周围有黑色边框。在 Python 3.5 中,此边框已替换为更微妙的白色/灰色阴影,这使得单元格在视觉上融合在一起。我想像以前使用的 Python 3.4 一样添加黑色边框。这可能吗?
最佳答案
你可以在你的 .jupyter\custom\custom.css
文件中添加这样的东西:
.rendered_html table, .rendered_html th, .rendered_html tr, .rendered_html td {
border: 1px black solid !important;
color: black !important;
}
您可以阅读有关自定义 jupyter 笔记本的更多信息 here .
关于python - 在 Jupyter Notebook 中使用 Pandas 表的 IPython.display 时如何在单元格周围包含边框,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/46041452/