Math Processing Error on IPython Notebook using MathJax 2.1

666 views
Skip to first unread message

sam...@gmail.com

unread,
Jun 16, 2013, 1:48:19 PM6/16/13
to mathja...@googlegroups.com
Hello. I hope it is OK to ask about this on this forum:

I'm using IPython3 Notebook with the following version info:

OS: Kubuntu Raring: with latest updates upto today
Browser: Firefox: 21
IPython3: 0.13.2
libjs-mathjax: 2.1+20121028-1
fonts-stix: 1.1

However, the following commands produce a Math Processing Error

'%load_ext sympy.interactive.ipythonprinting
from sympy import *
var('x')

I see near the status bar a message in tiny characters:

Loading [MathJax]/jax/output/HTML-CSS/imageFonts.js

after which I get an "unable to load" message (which disappeared too clickly for me to copy-paste) and then this error within the notebook.

First I don't get why it is trying to load image Fonts since I have fonts-stix installed. From http://docs.mathjax.org/en/latest/installation.html#firefox-and-local-fonts I understand that if I have the STIX fonts then it will use them and not try to load image fonts.

Nevertheless I also don't understand why it fails to load even the image fonts and on top of that why it emits a "Math Processing Error" message.

I hope someone can help me resolve this problem. Thank you!

Note: I'm not knowledgeable about JavaScript internals or anything but if given instructions I can test things if you want some more info.

Shriramana Sharma

unread,
Jun 16, 2013, 3:05:34 PM6/16/13
to mathja...@googlegroups.com
The problem was resolved by installing fonts-mathjax-extra which
provides the PNG fonts.

However I'd like for my browser to use the regular fonts instead.

Does http://docs.mathjax.org/en/latest/installation.html#firefox-and-local-fonts
mean that with a default Firefox/MathJax/IPython installation, given
that IPython notebook's directory is probably different, it is not
possible for me to do without the PNG fonts?

Thanks!

--
Shriramana Sharma ஶ்ரீரமணஶர்மா श्रीरमणशर्मा

Peter Krautzberger

unread,
Jun 18, 2013, 11:19:21 AM6/18/13
to mathja...@googlegroups.com
Hi,

Good to hear you could find a workaround. It sounds more of an iPython issue, so you might want to ask their community about this issue, too. It's not really possible to debug this without a live page, but as you noted, it's probably a local issue. TBH, I don't know how iPython integrates MathJax in the first place..

Does http://docs.mathjax.org/en/latest/installation.html#firefox-and-local-fonts mean that with a default Firefox/MathJax/IPython
> installation, given that IPython notebook's directory is probably different, it is not possible for me to do without the PNG fonts?

I'm afraid that's the case. I would suggest to file a bug report with the iPython notebook people. For example, they could add the STIX fonts as a dependency or ship MathJax fonts.

Peter.



--
You received this message because you are subscribed to the Google Groups "MathJax Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mathjax-user...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.



Shriramana Sharma

unread,
Jun 18, 2013, 12:09:42 PM6/18/13
to mathja...@googlegroups.com
On Tue, Jun 18, 2013 at 8:49 PM, Peter Krautzberger
<p.kraut...@gmail.com> wrote:
>
> I'm afraid that's the case. I would suggest to file a bug report with the
> iPython notebook people. For example, they could add the STIX fonts as a
> dependency or ship MathJax fonts.

OK thanks. Do you have any idea whether i.e. is there any talk going
on about modifying the FF policy such that MathJax can be supported
without this hassle?

Peter Krautzberger

unread,
Jun 18, 2013, 1:21:26 PM6/18/13
to mathja...@googlegroups.com
I doubt that's going to happen. It's two sound policies that make this special problem. First, webfonts actually require origin-restrictions, see https://bugzilla.mozilla.org/show_bug.cgi?id=604421. On the other hand, access to local files should be very restricted for security reasons (you don't want the browser to access all files on your machine).

Peter.


Reply all
Reply to author
Forward
0 new messages