#8488: Add support for @interact to the Sage library and module for a library of
interacts
------------------------------------------+---------------------------------
   Reporter:  was                         |       Owner:  jason       
       Type:  enhancement                 |      Status:  needs_review
   Priority:  major                       |   Milestone:  sage-4.3.4  
  Component:  interact                    |    Keywords:              
     Author:  William Stein, Jason Grout  |    Upstream:  N/A         
   Reviewer:                              |      Merged:              
Work_issues:                              |  
------------------------------------------+---------------------------------
Changes (by jason):

  * status:  needs_work => needs_review


Comment:

 Replying to [comment:11 was]:

 > REVIEW: * very nice using the python wrapping stuff, and making source
 code introspection work, in theory! * In practice, source code
 introspection does not work, though this is due to a lazy assumption *I*
 made I think when implementing interact in the notebook, namely I think
 when the notebook server sees "@interact" in the output, it does something
 funny with formatting.  Anyway, if you try: {{{
 interacts.calculus.taylor_polynomial?? }}} in a cell then shift-enter,
 you'll see the source is all on one long line, which isn't good.  That
 said, fixing this shouldn't be part of this patch, since it's a very
 different issue in the sage notebook itself, and maybe quite tricky to
 deal with.

 Ah, that makes sense.  I saw this, and even started writing a ticket for
 it, but I couldn't reproduce it with anything besides the interact stuff
 (see my comment above about ReST formatting), and then I ran out of time.

 I'm attaching a new patch which takes care of the namespace issue you
 mentioned.  Basically, I lump everything into a library file, and then
 just import into calculus.py the actual interact. I'm sure there's a fancy
 object we could make that would nicely categorize everything, but this
 quick solution takes advantage of the nice namespace framework we already
 have.

-- 
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/8488#comment:12>
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 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/sage-trac?hl=en.

Reply via email to