sage good gui

249 views
Skip to first unread message

Dmitry Shkirmanov

unread,
Apr 26, 2013, 3:47:25 AM4/26/13
to sage-s...@googlegroups.com
Hello, list. I used to use Sage a couple of years ago but moved to the
Maxima.
The reason for the moving to the maxima was that Sage could not split a
long symbolic output into several lines and showed this output as one
long line (i used browser based gui). Such kind of output is absolutely
unobservable.

But now i found out that maxima is terrible slow on some tasks in
comparison with commercial CAS (maple in particular). So i am thinking
about trying Sage again. As a result i have a question: is there some
Sage GUI that can split long output into lines?

Volker Braun

unread,
Apr 26, 2013, 5:59:41 AM4/26/13
to sage-s...@googlegroups.com
You mean ascii-art for equations? Clearly the terminal will wrap long lines.

Dmitry Shkirmanov

unread,
Apr 26, 2013, 6:39:15 AM4/26/13
to sage-s...@googlegroups.com
You mean ascii-art for equations? Clearly the terminal will wrap long lines.
I mean some tool that can display output similar to the (%o6) of

http://3.bp.blogspot.com/-V_sMjWKtLfQ/Tx9plVJ74xI/AAAAAAAAAqA/sgGhbgGAoB0/s1600/wxmaxima.png

The output here is split into two lines.

Volker Braun

unread,
Apr 26, 2013, 8:10:55 AM4/26/13
to sage-s...@googlegroups.com
wxMaxima has a lisp script that outputs MathML. I don't think we do anything along those lines. It would be nice if the output would use a mathml (perhaps with mathjax) pipeline, I think thats the only way to get useful line breaking for long equations.

Jason Grout

unread,
Apr 26, 2013, 9:34:17 AM4/26/13
to sage-s...@googlegroups.com
The next version of mathjax does line breaking. I don't think we've
upgraded yet:

http://docs.mathjax.org/en/latest/whats-new-2.0.html#automatic-line-breaking-of-long-displayed-equations

Thanks,

Jason





Dmitry Shkirmanov

unread,
Apr 26, 2013, 12:45:23 PM4/26/13
to sage-s...@googlegroups.com
> The next version of mathjax does line breaking. I don't think we've
> upgraded yet:
I suppose that i have to wait the next SAGE release?

> wxMaxima has a lisp script that outputs MathML. I don't think we do
> anything along those lines. It would be nice if the output would use a
> mathml (perhaps with mathjax) pipeline, I think thats the only way to
> get useful line breaking for long equations.
Just a curiosity.
The SAGE developers have combined a lot of scietific packages together.
May be it is a good idea to take wxmaxima sources and make wxmaxima to
work with SAGE? It can provide SAGE with fast and flexible GUI.

Jason Grout

unread,
Apr 26, 2013, 1:24:50 PM4/26/13
to sage-s...@googlegroups.com
On 4/26/13 11:45 AM, Dmitry Shkirmanov wrote:
>> The next version of mathjax does line breaking. I don't think we've
>> upgraded yet:
> I suppose that i have to wait the next SAGE release?
>

Well, we need to upgrade MathJax in the notebook. So someone needs to
first do that, and then it'll be in the next Sage release. Pull
requests on sage notebook are more than welcome!


>> wxMaxima has a lisp script that outputs MathML. I don't think we do
>> anything along those lines. It would be nice if the output would use a
>> mathml (perhaps with mathjax) pipeline, I think thats the only way to
>> get useful line breaking for long equations.
> Just a curiosity.
> The SAGE developers have combined a lot of scietific packages together.
> May be it is a good idea to take wxmaxima sources and make wxmaxima to
> work with SAGE? It can provide SAGE with fast and flexible GUI.
>

Again, if someone wants to look into this and submit the code, that
would be great.

Thanks,

Jason


P Purkayastha

unread,
Apr 27, 2013, 9:40:32 PM4/27/13
to sage-s...@googlegroups.com
Unfortunately, it won't work with our output since we do not use
displaymath in the output. The automatic line breaks does work with
displaymath in the text editor. See the attached figure.

If you want to play around with the mathjax2.1, I have created a branch
here, with linebreaks enabled:
https://github.com/ppurka/sagenb/tree/mathjax2.1


shot-2013-04-28_09-36-21.png

William Stein

unread,
May 1, 2013, 9:11:18 PM5/1/13
to sage-support
Hi,

In https://cloud.sagemath.com, displayed equation wrapping works now
and is enabled by default.

-- William
> --
> You received this message because you are subscribed to the Google Groups
> "sage-support" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to sage-support...@googlegroups.com.
> To post to this group, send email to sage-s...@googlegroups.com.
> Visit this group at http://groups.google.com/group/sage-support?hl=en.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>



--
William Stein
Professor of Mathematics
University of Washington
http://wstein.org
Screenshot 2013-05-01 at 6.09.51 PM.png

Jason Grout

unread,
May 1, 2013, 11:07:22 PM5/1/13
to sage-s...@googlegroups.com
On 5/1/13 8:11 PM, William Stein wrote:
> Inhttps://cloud.sagemath.com, displayed equation wrapping works now
> and is enabled by default.

Likewise for the sage cell server, though the below shows some odd
linebreaks, likely a result of Sage representing multiplication by a
thin space "\,":

http://sagecell.sagemath.org/?z=eJxLs9WoiDPSTs4v1qjQ1C7OzANSmnGmvFzFGfnlGml6qRUFiXkpGpqaAAkhDJU=&lang=sage

Thanks,

Jason


P Purkayastha

unread,
May 2, 2013, 12:48:22 AM5/2/13
to sage-s...@googlegroups.com
Both the cloud and sagecell don't work with pretty print. Here is an example on the cell:

William Stein

unread,
May 2, 2013, 12:57:44 AM5/2/13
to sage-support
On Wed, May 1, 2013 at 9:48 PM, P Purkayastha <ppu...@gmail.com> wrote:
> Both the cloud and sagecell don't work with pretty print. Here is an example
> on the cell:
> http://goo.gl/fBez6

Thanks for reporting this! I didn't even know about the pretty_print
command, but it looks really cool/useful, and I'll rewrite it for
cloud.

>
> On Thursday, May 2, 2013 11:07:22 AM UTC+8, Jason Grout wrote:
>>
>> On 5/1/13 8:11 PM, William Stein wrote:
>> > Inhttps://cloud.sagemath.com, displayed equation wrapping works now
>> > and is enabled by default.
>>
>> Likewise for the sage cell server, though the below shows some odd
>> linebreaks, likely a result of Sage representing multiplication by a
>> thin space "\,":
>>
>>
>> http://sagecell.sagemath.org/?z=eJxLs9WoiDPSTs4v1qjQ1C7OzANSmnGmvFzFGfnlGml6qRUFiXkpGpqaAAkhDJU=&lang=sage
>>
>> Thanks,
>>
>> Jason
>>
>>
Reply all
Reply to author
Forward
0 new messages