On 7/30/10 1:04 AM, Harald Schilly wrote:
The licensing worksheets ticket is
http://trac.sagemath.org/sage_trac/ticket/8763

On Fri, Jul 30, 2010 at 07:06, Jason Grout<jason-s...@creativetrax.com>  wrote:
I would be very interested in any comments you have on any gotchas when
integrating interacts into the Sage library.  When I tried to do a few, it
seemed like I kept running into problems (but I don't remember what the
problems were right now).

Well, it's part of the sage library, not part of the notebook. Hence
some things work differently: you have to import everything you need
(python imports), i.e. from sage.all import SR, then x = SR.var('x')
and don't forget that 2^3 is an XOR (and doesn't complain) ... you
need to enter 2**3. You are not allowed to use globals, instead use
module level variables. And yes, there is no f(x) =... syntax, that's
f = symbolic_expression(<expression in x>).function(x) or just f =
SR(<expression>) which also works for strings when the variable was
defined before. [a..b] and R.<x>  = RingXYZ() doesn't work either.
Additionally, debugging errors in @libarary_interacts seems to be a
bit tricky, because in the html website, you only see an empty box or
an abridged stacktrace which you cannot expand (I removed the
decorator and called the function with appropriate arguments to
trigger the exception and learn more about it)


If these are supposed to be much more of a user-oriented thing, and typically use the preparser quite heavily, why don't we just run the preparser on these? That would take care of a lot of the above problems.




  I'd also like to hear any suggestions on how to
make incorporating things in the library easier.

In my eyes, there is a better solution. I think we need to enhance the
way published worksheets work towards a wiki:
1. interlinking
2. make interacts working
3. editing by everybody
Together with some indexing and categories/tags one would get a wiki
system where all the interacts that are now in
wiki.sagemath.org/interact would actually come alive.
The interesting ones can be ported as it is done by me now, but the
level how to contribute is much lower.


Yes, maybe that's the best way to go.  I don't know.

Thanks,

Jaon

--
You received this message because you are subscribed to the Google Groups 
"sage-edu" group.
To post to this group, send email to sage-...@googlegroups.com.
To unsubscribe from this group, send email to 
sage-edu+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/sage-edu?hl=en.

Reply via email to