python - 在 Jupyter Notebook 中使用 Pandas 表的 IPython.display 时如何在单元格周围包含边框

标签 python ipython jupyter-notebook jupyter

在 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/

相关文章:

python - iPython 笔记本中的 Argparse : unrecognized arguments: -f

python - 在 jupyter notebook 中编辑代码缩进的快捷方式

Python 3 httplib2 cookie

python - 类型错误 : write_form() takes at most 1 argument (2 given)

python - 无法直接应用网格网格来创建 Surfaceplot

python - pyspark 应用程序的 Ipython-Spark 设置

ipython - iPython Notebook 中的默认笔记本目录 - iPython 3.0.0

python - 将导出的 .py 文件导入回 IPython Notebook

python - DeepFaceLab_NVIDIA 在 'data_src faceset extract' - TensorFlow 期间输出错误

amazon-web-services - 在没有SSH客户端的情况下在AWS EC2上运行IPython/Jupyter Notebook服务器