Ipython1.1笔记本字体更改不工作通过CSS文件 [英] Ipython1.1 notebook font change not working via css file
本文介绍了Ipython1.1笔记本字体更改不工作通过CSS文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我试图改变一些设置,特别是我的ipython 1.1笔记本通过创建一个配置文件和编辑costum.css,但它不工作在Windows 7中的字体。
I have tried to change some setting especially the fonts in my ipython 1.1 notebook via creating a profile and editing the costum.css but it is not working in windows 7.
我的custom.css文件在Users /user_name/。ipyton / profile_default / static / css目录
My custom.css file is in Users/"user_name"/.ipyton/profile_default/static/css directory
,我已将这些行添加到文件
and I have added these line to the file
<style>
div.cell.code_cell { /* Areat containing both code and output */
font-family: Consolas, monospace;
}
</style>
我做错了什么
推荐答案
您不需要custom.css文件中的< style>
标签!
在IPython笔记本的样式可以找到这里
You don't need the <style>
tags in the custom.css file!
A nice example on styling the IPython notebook can be found here
这篇关于Ipython1.1笔记本字体更改不工作通过CSS文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文