On Fri, 19 Jan 2007 11:27:00 -0800, Jaap Spies <[EMAIL PROTECTED]> wrote:

William Stein wrote:
On Fri, 19 Jan 2007 07:25:35 -0800, Jaap Spies <[EMAIL PROTECTED]> wrote:

Having a link attribute is nice in the notebook: copy it in a new
tab/window of your browser and you are at the source! What do you think.

I don't understand. Could you clarify what you are describing here.


In the new code there are two examples:

e.g.
sage: a = sloane.A001110; a
Numbers that are both triangular and square: a(n) = 34a(n-1) - a(n-2) + 2.
sage: a(0)
0
[...]
sage: a.offset
0
sage: a.link
'http://www.research.att.com/~njas/sequences/A001110'

Select and copy this in your browser, etc.

I think this is a nice feature, that maybe can be forced in all sloane classes.

That's a great idea.  And, (as you'll see when I recode it slightly), you can
change the a.link method to actually be a genuine HTML hyperref if the user is
running the SAGE notebook, and be plain text if they are using IPython.  Anyway,
great idea.

William

--~--~---------~--~----~------------~-------~--~----~
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-devel
URLs: http://sage.scipy.org/sage/ and http://modular.math.washington.edu/sage/
-~----------~----~----~----~------~----~------~--~---

Reply via email to