Community Packages

Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

FS#36511 - [ipython] fonts required for notebook

Attached to Project: Community Packages
Opened by Mike Ressler (mike_r) - Monday, 12 August 2013, 20:44 GMT
Last edited by Kyle Keen (keenerd) - Thursday, 15 August 2013, 20:01 GMT
Task Type Bug Report
Category Packages
Status Closed
Assigned To Kyle Keen (keenerd)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description: The font "font-awesome" needs to be installed so that the toolbar icons in the notebook work for ipython-1.0. "otf-font-awesome" and "ttf-font-awesome" are available in the AUR. I installed the OTF version and things now work correctly.

Either version of the font needs to be adopted into the Community repo, then it needs to be added as an optional dependency to ipython.


Additional info:
* ipython 1.0

Steps to reproduce:
Install ipython-1.0
Install jinja (see other bug reports)
Start "ipython notebook" and load a notebook

Toolbar icons show a small square with four characters inside, typical of an incorrect font that does not have the appropriate glyphs.
This task depends upon

Closed by  Kyle Keen (keenerd)
Thursday, 15 August 2013, 20:01 GMT
Reason for closing:  Not a bug
Additional comments about closing:  Bad config.
Comment by Mike Ressler (mike_r) - Monday, 12 August 2013, 20:57 GMT
Sorry about the lack of a summary. I'm a flyspray newbie and forgot to add it, but I don't see an obvious way to edit the task after it has been submitted. (Possible???) Anyway, I hope the details are clear enough.
Comment by Kyle Keen (keenerd) - Monday, 12 August 2013, 21:12 GMT
There, fixed the title.

Are you sure this font is required? Even as an optdep, it would still need to be moved. I would prefer to change the default font to something more reasonable.

edit: Ew, it is a bunch of icons. Ipython guys, what are you doing...
Comment by Mike Ressler (mike_r) - Monday, 12 August 2013, 21:19 GMT
Yeah - I'm sure. Didn't work before installation, did work afterward. It's hard to find, but I got the tip from the ipython site:

http://ipython.org/ipython-doc/stable/whatsnew/version1.0.html

About 3/4 of the way down the page, under "Javascript Components" it lists:

Font-Awesome (3.1) for icons

So I found the fonts in the AUR, and after installation, all is working as I expected. I suppose there might be other symbol fonts that provide similar glyphs in the same positions, but I haven't looked to see how the particular font file gets called.

Thanks for looking into this.

edit: the otf font actually comes with ipython and is installed in /usr/lib/python3.3/site-packages/IPython/html/static/components/font-awesome/build/assets/font-awesome/font/FontAwesome.otf. I guess it is just an issue of making the "runtime" see it. I'll try some more digging later.

Comment by Mike Ressler (mike_r) - Monday, 12 August 2013, 23:16 GMT
Maybe this is something upstream, or at least a weird interaction with something deeper in Arch. I uninstalled the ipython pkg, then installed ipython from source using "python setup.py install". The same issue is still present. For whatever reason, the notebook just can't find it's own font files.

Based on this, I'm changing my earlier answer ... don't pull in the font-awesome files. There is clearly something not working properly within the package itself. I know the ipython guys a bit - maybe I'll ask upstream next.
Comment by Mike Ressler (mike_r) - Tuesday, 13 August 2013, 01:08 GMT
More data - now I'm thoroughly flummoxed. My previous report was based on my work laptop. Now that I'm home, I've tried it on my desktop. I get icons, but they are corrupted. Using lsof, I find that it is picking up the icons from the FontAwesome.otf file that is included in texlive-fontsextra.

I then tried it on my personal laptop at home. It works flawlessly, though there are no Font-Awesome fonts reported by lsof whatsoever. There are no OTF fonts loaded, and the TTFs are all the usual suspects like DejaVu, Liberation, etc. Nothing that resembles Font-Awesome. I'm presuming it is finding its own font, but I would have expected lsof to tell me this.

All three system are up-to-date Arch except for the kernel and graphics modules. (The 3.10.5 kernels with the nvidia and intel drivers killed everything for me, so I downgraded to 3.10.3 or 3.9.9. Everything else is current.) I'm running E17 on all three, but I don't see how that could matter. I don't think this is a PEBKAC, but I am certainly confused ...
Comment by Mike Ressler (mike_r) - Tuesday, 13 August 2013, 02:53 GMT
Okay, not quite a PEBKAC, but not a bug, either. First, I switched the notebook to the chromium browser and everything was fine. Then I created a new user and started it with firefox and everything was again fine. Then I went back to my normal login, blew away my firefox profile (.mozilla/...) after backing up my bookmarks, then started the notebook with firefox, and now everything works. Something in my firefox config/cache must have been crufty and interfered with the ipython notebook.

Sorry for the noise. I think it is safe to close this with no further work.

edit: Finally traced it down to whether I let pages to choose their own fonts in Firefox. If I say "yes", it works. If I say "no", it fails. Too bad, because I carefully choose my fonts to keep things readable. So please close this -- not a bug -- though it is a "grrr".

Loading...