Anyway... do-able but hard.  Probably what we really want is just a
way to embed compute cells in static html documents -- i.e., invert
the whole thing and have something different than a sagews
worksheet....  But that's another can of worms for later.

On Wed, Oct 26, 2016 at 10:17 AM, William Stein <[email protected]> wrote:
> On Wed, Oct 26, 2016 at 9:40 AM, Harald Schilly
> <[email protected]> wrote:
>> Hello, do you mean normal anchor links? Usually, that makes no sense,
>> since in many codemirror based editors those parts of the document
>> aren't part of the webpage at all -- they only show the region where
>> you're currently in (performance, etc.)
>>
>
> He means he wants to jump to the first anchor link in an html:...
> output of some worksheet cell.  This is well defined and possible to
> implement.   I can't really think how to do it besides actually
> running through all such outputs via javascrip then trying to match
> with jquery.  This will break when we rewrite sagews rendering using
> react.  Another potentially more robust (and more difficult) approach
> would be parsing the source sagews file's contents.
>
>
>
> William
>
>> What I can offer is a way to reference a concrete line number in such
>> an editor. Here is the slightly dusted ticket:
>> https://github.com/sagemathinc/smc/issues/161
>>
>> I'm aware that this ticket doesn't solve what you want to accomplish.
>>
>> My take is: we should strip away everything beginning from the
>> hash-sign to the end when opening a URL. That should be a small change
>> to avoid such a stupidity. Second, would you expect that such a file
>> is being created when you land on the page, or rather to be told that
>> the file doesn't exist?
>>
>> -- harald
>>
>>
>> On Wed, Oct 26, 2016 at 6:24 PM, Rob Beezer <[email protected]> wrote:
>>> Is it possible to use a link from one Sage worksheet to another, with a
>>> named location within the target worksheet?  In other words, employ a link
>>> such as written below?
>>>
>>> <a href="target.sagews#location">link</a>
>>>
>>> It seems that presently clicking on a link like this makes a new empty file
>>> with the name "target.sagews#location"
>>>
>>> A MWE is in
>>>
>>> https://cloud.sagemath.com/projects/abdc6f9f-cf83-4b5e-ad1c-0012ae18c1d3/files/linkid/
>>>
>>> Thanks,
>>> Rob
>>>
>>> --
>>> You received this message because you are subscribed to the Google Groups
>>> "sage-cloud" group.
>>> To unsubscribe from this group and stop receiving emails from it, send an
>>> email to [email protected].
>>> To view this discussion on the web visit
>>> https://groups.google.com/d/msgid/sage-cloud/MTAwMDAyNi5iZWV6ZXI.1477499094%40quikprotect.
>>> For more options, visit https://groups.google.com/d/optout.
>>
>> --
>> You received this message because you are subscribed to the Google Groups 
>> "sage-cloud" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to [email protected].
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/sage-cloud/CAGG4CB5gDnadK9X7nnQu1--%3DZ2z3PovpxZyforXcLohJ6AGDEA%40mail.gmail.com.
>> For more options, visit https://groups.google.com/d/optout.
>
>
>
> --
>
> Best Regards,
> William Stein
>
> CEO, SageMath, Inc.



-- 

Best Regards,
William Stein

CEO, SageMath, Inc.

-- 
You received this message because you are subscribed to the Google Groups 
"sage-cloud" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/sage-cloud/CA%2BjwZMgD5jrD1VtBUTO62qeP7Xmc2raufKYQo%2BV_E6RvBPvvuQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to