Changing the font in iPython notebook markdown cells

三世轮回 提交于 2019-12-06 07:32:11

On Ubuntu this works:

<style>
.text_cell_render {
font-family: Times New Roman, serif;
}
</style>

The ... in your example indicate other possible options like listed e.g. in http://www.w3schools.com/css/css_text.asp

However, this CSS applies to all rendered cell text, ie. markdown and heading. If you want to format just the markdown text use .text_cell_render p {. The individual headings can be addressed with h1, h2, etc instead of p.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!