Hi, Name the log "last_session.py" then do
load "last_session.py" and see what happens. The problem is that log is already "preparsed" (it's .py code not .sage code). William On Fri, Feb 27, 2009 at 9:41 AM, Foadi, James <j.fo...@imperial.ac.uk> wrote: > > Thank you. > The release is: > > > Sage Version 3.2.3, Release Date: 2009-01-05 > > > The file is pasted here: > > -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- > #log# Automatic Logger file. *** THIS MUST BE THE FIRST LINE *** > #log# DO NOT CHANGE THIS LINE OR THE TWO BELOW > #log# opts = Struct({'__allownew': True, > 'interact': 1, > 'logfile': 'last_session.sage', > 'profile': ''}) > #log# args = [] > #log# It is safe to make manual edits below here. > #log#----------------------------------------------------------------------- > _ip.magic('run -i > "/home/james/.sage/temp/ubuntu8/14993/_home_james__sage_init_sage_0.py"') > load("setup") > load("/home/james/workSAGE/setup") > _ip.system("ls") > load("setup") > _ip.system("rm -f setup") > _ip.system("ls") > _ip.magic('logstart "last_session.sage"') > > a=sin(Integer(2)*pi*x) > a(Integer(1)) > a(Integer(2)) > type(a) > def a(x): > return sin(Integer(2)*pi*x) > a(Integer(1)) > a(RealNumber('0.5')) > _ip.magic("quit ") > --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- > > > J > > > > > > From: sage-support@googlegroups.com [sage-supp...@googlegroups.com] On Behalf > Of mabshoff [michael.absh...@mathematik.uni-dortmund.de] > Sent: 27 February 2009 14:40 > To: sage-support > Subject: [sage-support] Re: failure to logging input > > On Feb 27, 6:32 am, "Foadi, James" <j.fo...@imperial.ac.uk> wrote: >> Dear all, > > Hi, > >> I have logged a SAGE session to a file output called "last_session.sage". >> Next time I have started SAGE and tried to load that file as follows: >> >> sage: load "last_session.sage" >> >> I got the following error message: >> >> ------------------------------------------------------------ >> IndentationError: unexpected indent >> (_home_james_workSAGE_last_session_sage_1.py, line 9) >> >> WARNING: Failure executing file: >> </home/james/.sage/temp/ubuntu8/15266/_home_james_workSAGE_last_session_sag >> e_1.py> >> >> Anyone can help me with this? > > Can you post that file? If is large or your mailer messes up > attachments you might want to stick it on some webpage and post a link > here. > > Also: What Sage release are you using? > >> Many thanks, >> >> J > > Cheers, > > Michael > > > > > -- William Stein Associate Professor of Mathematics University of Washington http://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 URLs: http://www.sagemath.org -~----------~----~----~----~------~----~------~--~---