#14104: Implement an interface for displaying objects in HTML from the command 
line
----------------------------------+-----------------------------------------
       Reporter:  andrew.mathas   |         Owner:  andrew.mathas
           Type:  enhancement     |        Status:  new          
       Priority:  major           |     Milestone:  sage-5.8     
      Component:  user interface  |    Resolution:               
       Keywords:                  |   Work issues:               
Report Upstream:  N/A             |     Reviewers:               
        Authors:  Andrew Mathas   |     Merged in:               
   Dependencies:                  |      Stopgaps:               
----------------------------------+-----------------------------------------

Comment (by andrew.mathas):

 Replying to [comment:3 was]:
 > There is a similar command "html.table" in sage already.  I was recently
 reading it since I guess I have to rewrite it for salvus... and I didn't
 like it.  Could your code somehow address the existence of that code?
 (This could be for another ticket, of course.)
 >
 > IN the sage notebook now putting '<html>...</html>" in output makes it
 display as html.
 > In salvus there is a completely different way of doing this, which
 involves sending messages... From a code point of view there is a function
 "html", which does the right thing for any notebook client.

 As I understand it, html.table is intended to be used from the notebook
 whereas this command is aimed at the command line. Also html.table seems
 to only take lists whereas my motivation for writing this was to display
 ''labelled'' tables/matrices. I'm not really sure what you mean by
 "addressing the existence" of html.table, but the code could (and possibly
 should) be made to work together.

 My patch provides a few classes for interactively constructing a web page,
 section by section, using the format of the sage documentation. Currently
 it only has hooks for displaying tables, because this is what I care about
 at the moment, but I have tried to make the framework easily extendible.
 In addition to displaying data pages on the fly, my plan is to use it for
 displaying databases -- such as, for example, all of the decomposition
 matrices for the symmetric groups in a fixed characteristic for n\le 30.

 Inside the notebook I could just output a string '<html>...</html>' for
 the notebook to interpret -- although, for this to work the links would
 need to be updated and some of the formatting stripped out. This would be
 easy to do provided that there is a way for sage to determine whether or
 not it is running inside the notebook -- I'm afraid that I don't know much
 about the notebook:)

 The main reason that I wrote this is because I to be able to scroll the
 entries of a table whilst keeping its column and row headers fixed. Via
 some open source javascript, I have the scrolling feature working although
 I'm not happy with the output yet -- in the next day or so I will add
 examples to the patch which illustrates this, but first I need to
 rearrange my code a little since my current examples depend on the patches
 #14103, #13605 and some other code not yet on trac.

-- 
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/14104#comment:4>
Sage <http://www.sagemath.org>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica, 
and MATLAB

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


Reply via email to