4


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

4

1 回答 1

5

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

找到你的 ipython egg 发行版。我使用easy_install安装了我的,所以我的路径如下所示:

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

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

于 2013-01-13T20:07:43.147 回答