Hi Carlos,

And it works :-)

Just some small things I noticed on my end:
* the line ending/end of file thingy in spyderlib/utils/inspector/conf.py caused an error here (popup showing something was wrong on line 170). Removing the tab on the line 170 or adding an extra white line resolved the issue for me * maybe this is well known for writing math in sphinx, but it took me some attempts before I realised some of the LaTeX commands (not all) had to be escaped twice. For instance \\frac{}{} and \\text * Maybe add a MathJax reference in: Preferences > Object Inspector > Render mathematical equations (build-in MathJax libs) or something?

Great feature! Thanks for that. Does Matlab has something as nice as this ;-) ?

Regards,
David


On 06/03/12 17:25, Carlos Córdoba wrote:
Hi David,

Don't worry, it was my time frame. This is ready for merge and I'm going to do it right now. Please be aware that this feature requires Sphinx 1.1+ and that it can be activated/deactivated on

Preferences > Object Inspector > Render mathematical equations

I finally added MathJax to the tree to have a really smooth experience (it's slow and tends to fail if used from the net). Besides, although on the outside you won't see much difference, on the inside I re-architectured the rich text feature to be much more easier to extend. So wait for more juicy features in the future. Next one: a more beautiful docstring header.

Cheers,
Carlos

El 28/02/12 07:58, David Verelst escribió:
Hi Carlos,

Just to be clear: I didn't mend to push you to push to code asap, I am just curious about the result :-)

Regards,
David

On 28/02/12 13:23, Carlos Córdoba wrote:
Hi David,

I haven't pushed this yet because I'm fine tuning the details of our implementation. You're right, the problem with pngmath is that it needs a latex environment to work and because of that it's probably slower. However, since most scientists already have latex, I could add it later as an option if there is enough demand. jsmath (which works on Sphinx 1.0 and below) is too old by now (compared to mathjax) and it has always had font problems when you don't have latex installed.

I plan to push this work during the next week.

Cheers,
Carlos

El 28/02/12 04:56, David Verelst escribió:
Hi,

This looks very sweet indeed! Where is this implementation living? Already in the default development branch or in your clone of the spyder repo?

I assume the other Sphinx methods of rendering math, that is to PNG files via Latex (sphinx.ext.pngmath), is a non go due to the dvi or latex dependencies?

Regards,
David

On 27/02/12 14:44, Carlos Córdoba wrote:
Hi Jonatan,

Thanks, it looks good indeed!

I think you're right. Ubuntu 12.04 will include MathJax as a new package, so we should include it as an optional dependency. For Windows and Mac we can download it from the net if people wants to use it offline. Of course this is more work for me, and that's precisely what I was trying to avoid with a simple inclusion :-)

Cheers,
Carlos

El 27/02/12 03:50, Jonatan Hjul escribió:
Wow this looks awesome - that would definitely be a great addition.

I know MathJax is javascript - but maybe it could be an optional
dependency like Sphinx, rope, pylint etc..? Or maybe one could select
between disable, online rendering and offline rendering.

/Jonatan


On 24 Feb., 16:24, Carlos Córdoba<[email protected]>  wrote:
After a couple of days of work I made that the object inspector could render latex formulas in beautiful images using MathJax, a javascript
library for this purpose and for which Sphinx 1.1+ has a plugin.

Now my question is: should we include mathjax in the tree? We could call it from its location on the web but I'll be in favor of the inclusion so that this feature could work on any circumstance, i.e. on/offline. Note
that mathjax would add around 4.5 MiB in size to Spyder.

Cheers,
Carlos

  oi_latex.png
40KVisDownload






--
You received this message because you are subscribed to the Google Groups 
"spyder" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/spyderlib?hl=en.

Reply via email to