On Fri, Jun 26, 2009 at 4:47 PM, Ethan Van Andel<evlu...@gmail.com> wrote: > > I'm trying to profile my code using "prun" like the tutorial says. > However, I can't get it to work. For example a command like this: > %prun plot(x,0,2) > gives this error: > Syntax Error: > %prun plot(x,0,2) > and this: > prun plot(x,0,2) > gives this error: > line 4 > prun plot(x,_sage_const_0 ,_sage_const_2 ) > ^ > SyntaxError: invalid syntax > > I am running this in the notebook (sage 4.0.1), not the interactive > shell, is that a problem?
Yes. > Alternately is there something that I need > to import? > > If either of these is the case, you may want to make the tutorial > section a bit clearer. > http://www.sagemath.org/doc/tutorial/programming.html#profiling > > For the time being I can use hotshot, so this certainly isn't urgent. > > Thanks, > > Ethan > > > -- 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 -~----------~----~----~----~------~----~------~--~---