I published two worksheets: called testpublish1 and testpublish2. I haven't managed to successfully load either of them. I tried different combinations 'http://www.sagenb.org/home/pub/2127/' is the correct url of the worksheet.
load('http://www.sagenb.org/home/pub/2127/') load('http://www.sagenb.org/home/pub/2127/testpublish1.py') #with... load('http://www.sagenb.org/home/pub/2129/testpublish2.pyx') load('http://www.sagenb.org/home/pub/testpublish1.py') load('http://www.sagenb.org/home/pub/2127/testpublish1') All produced errors. I am not certain on the correct syntax. I gather the worksheet you are loading has to be published, but does the worksheet doing the loading have to be published as well. Either way I have tried both ways. On Jun 8, 10:58 pm, William Stein <wst...@gmail.com> wrote: > On Tue, Jun 8, 2010 at 2:15 PM, dbjohn <johndbren...@gmail.com> wrote: > > Okay a copy of the url of a worksheet named 'test2' I have is > >http://www.sagenb.org/home/johndb/1/ > > That is all. It ends in the number one; not the expected: /test2.py'. > > So I tried loading that exact worksheet url from a different > > worksheet, then tried adding the test2.py to the end of it, then tried > > replacing the number sage added with the worksheet name but all > > produced errors. Does one have to publish or share them to access > > them. Should the plain url just work? Could I get more precise > > instructions on the correct way to reference online sage notebooks. > > You have to publish the worksheet first. > > Note that sagenb.org just went down, but will be back in ~ 15 minutes. > > -- William > > > > > > > On Jun 8, 4:28 am, Jason Grout <jason-s...@creativetrax.com> wrote: > >> On 6/7/10 12:40 PM, dbjohn wrote: > > >> > Are there any examples of using functions and classes from other > >> > worksheets in online notebook? Would it be a case of getting importing > >> > the worksheet or calling a specific function with the full path on the > >> > server/or url. I tried the load and attach like: > >> > attach "myWorksheet.sage" > > >> > but didn't respond. Is this possible? > > >> Seehttp://sagenb.org/home/pub/2054/, where I load a library in the very > >> first cell from a web address. I then use functions from the library in > >> the rest of the sheet. > > >> Thanks, > > >> Jason > > > -- > > To post to this group, send email to sage-support@googlegroups.com > > To unsubscribe from this group, send email to > > sage-support+unsubscr...@googlegroups.com > > For more options, visit this group > > athttp://groups.google.com/group/sage-support > > URL:http://www.sagemath.org > > -- > William Stein > Professor of Mathematics > University of Washingtonhttp://wstein.org -- To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URL: http://www.sagemath.org