更改ipython笔记本字体类型 [英] Change ipython notebook font type

查看:388
本文介绍了更改ipython笔记本字体类型的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我想将ipython笔记本中的字体类型更改为consolas字体类型。我首先使用

生成个人资料

ipython个人资料创建



<但是,我不清楚在此配置文件中指定字体类型的语法。



感谢任何帮助。



谢谢,

-Uma

解决方案

ipython笔记本(网络界面到ipython)使用标准的html / css来定义外观。如果您对这些文件进行更改,它将改变您的ipython笔记本的外观。



找到您的ipython蛋分发。我使用easy_install安装了我的,所以我的路径如下所示:

  /usr/lib/python2.6/site-packages/ ipython-0.12.1-py2.6.egg / IPython / frontend / html / notebook / static / css 

基本上你只想找到ipython安装位置,然后转到上面显示的路径。更新你的css,重启你的ipython服务器,你应该好好去。



I want to change the font type in my ipython notebook to consolas font type. I first generated a profile using

ipython profile create

But, I am not clear on the syntax to specify the font type in this config file.

Any help is appreciated.

Thanks,
-Uma

解决方案

The ipython notebook (the web interface to ipython) uses standard html/css to define the appearance. If you make changes to these files, it will alter the appearance of your ipython notebook.

Locate your ipython egg distribution. I installed mine using easy_install, so my path looks like this:

/usr/lib/python2.6/site-packages/ipython-0.12.1-py2.6.egg/IPython/frontend/html/notebook/static/css

Basically you just want to find the ipython install location, then go to the path shown above. Update your css, restart your ipython server, and you should be good to go.

这篇关于更改ipython笔记本字体类型的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆