Ipython1.1 notebook font change not working via css file

只愿长相守 提交于 2019-12-25 08:56:54

问题


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.

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>

What am I doing wrong


回答1:


You don't need the <style> tags in the custom.css file!
A nice example on styling the IPython notebook can be found here



来源:https://stackoverflow.com/questions/20124846/ipython1-1-notebook-font-change-not-working-via-css-file

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