Fedora 21上的IPython notebook 2.3.0找不到FontAwesome

时间:2015-02-26 02:11:40

标签: python ipython ipython-notebook

寻求帮助试图告诉IPython笔记本在哪里可以找到Fedora 21上的fontawesome字体。它们显然是在/usr/share/font-awesome-web下单独打包的。这有什么配置吗?无法找到/提供字体导致按钮无法在浏览器中正确呈现...

在浏览器中,我获得了404:

[02:50:16.296] downloadable font: download failed (font-family: "FontAwesome" style:normal weight:normal stretch:normal src index:2): status=2147746065 
source: http://192.168.56.88/static/fonts/fontawesome-webfont.ttf?v=4.1.0 @ http://192.168.56.88/static/style/style.min.css?v=84c99f996b473c651c7a92702ce5cd33

在我运行笔记本电脑服务器的终端中,确实没有更多的信息:

2015-02-26 02:03:32.999 [NotebookApp] Kernel args: {'extra_arguments': [u'--log-level=DEBUG', u"--IPKernelApp.parent_appname='ipython-notebook'", u'--profile-dir', u'/root/.ipython/profile_nb'], 'cwd': u'/home/fedora'}
DEBUG:tornado.access:201 POST /api/sessions (192.168.55.242) 16.53ms
DEBUG:tornado.access:304 GET /api/notebooks/Untitled0.ipynb/checkpoints (192.168.55.242) 24.65ms
WARNING:tornado.access:404 GET /static/fonts/fontawesome-webfont.ttf?v=4.1.0 (192.168.55.242) 0.63ms referer=http://192.168.56.88/static/style/style.min.css?v=84c99f996b473c651c7a92702ce5cd33
WARNING:tornado.access:404 GET /static/fonts/fontawesome-webfont.ttf?v=4.1.0 (192.168.55.242) 0.69ms referer=http://192.168.56.88/static/style/style.min.css?v=84c99f996b473c651c7a92702ce5cd33

1 个答案:

答案 0 :(得分:0)

我今天自己遇到了这个问题。 python-ipython-notebook-2.3.0-1.fc21.noarch包的文件/usr/lib/python2.7/site-packages/IPython/html/static/style/style.min.css有错误的引用字体很棒的文件。一个快速而肮脏的解决方案是:

cd /usr/lib/python2.7/site-packages/IPython/html/static
sudo ln -s components / font-awesome / font fonts

最好在RedHat bugzilla中发出python-ipython-notebook的错误信号,如果我有空余时间,我会这样做。