Hi Pierre,

Thanks for your kind words. They really mean a lot to me, especially coming from you, who has created such an amazing environment as Spyder!

Carlos

El 25/03/12 07:43, Pierre Raybaut escribió:
Carlos,

I've just tested the feature and wow, that is very impressive.
Great work!
Really amazing.

-Pierre

Le 24 mars 2012 18:46, Carlos Córdoba<[email protected]>  a écrit :
Ok, I fixed it in trunk. Don't hesitate to tell us if anything else is
failing or bothering you about this feature.

Cheers,
Carlos

El 21/03/12 10:46, Carlos Córdoba escribió:

Hi Jonatan,

Thanks for testing. You're totally right about it and I think I know how to
fix it. It's just a css hack.

Cheers,
Carlos

El 10/03/12 09:55, Jonatan Hjul escribió:

A small issue maybe. In inline math it seems like the baseline is
shifted a little bit upwards, e.g. in ''' If we let :math:`a` be the
first side'''.

I guess it hold for all math - but it just seem a little bit strange
when used like this.

Now there is not going to a latex typesetting discussion over this -
but if there is an easy fix - it would be nice.

Anyway - it really seem to be working great.


On 9 Mar., 17:42, Carlos Córdoba<[email protected]>  wrote:

Hi David,

Thanks a lot for your kind words and for testing it so fresh out of the
oven! My answers are below:

El 07/03/12 09:20, David Verelst escribió:

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

Weird. Didn't notice it on my tests (on windows, mac and linux) but it's
a very simple change. I've done it on my repo and will commit it soon.



* 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

To use a single '\', you need to use raw docstrings, i.e. the ones that
are preceded by an r, like in

r"""
This is a frac :math:`\frac{5}{6}`
"""

However, your comment let me notice that \\ was not working, so I did a
change to fix it. Now all examples on the Sphinx math page work out of
the box:

http://sphinx.pocoo.org/latest/ext/math.html

Please test the feature with more complex things so this could be rock
solid when 2.2 be released.

* Maybe add a MathJax reference in: Preferences>  Object Inspector>
Render mathematical equations (build-in MathJax libs) or something?

Is this really necessary? I'm not on favor of telling users these kind
of details. I think they just need to know that checking the box they'll
get rendered equations. But if other devs think differently I could
change it.

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

Regards,
David

Thanks again,
Carlos







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.

--
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