I'm always impressed with the speed and helpfulness of responses here.
As it turns out, changing
    f = sage_eval(f, locals={'x':x})
to
    f(x) = sage_eval(f, locals={'x':x})
did the trick. Thanks very much for your help!

- Graham
On Jan 26, 2:39 pm, kcrisman <[email protected]> wrote:
> I can almost 100% guarantee this is about the fact that
>
> sage: f=x^2
> sage: f(3)
> 9
>
> is not supposed to work anymore, though currently one gets the
> deprecation warning and the answer.  Are there places in your interact
> you can replace f=x^2 with f(x)=x^2?   I've noticed this can be tricky
> to do if one has functions input as strings in the interact.
>
> - kcrisman
>
> On Jan 26, 1:02 pm, Jason Grout <[email protected]> wrote:
>
>
>
> > On 1/26/11 11:52 AM, Graham Enos wrote:
>
> > > Hi everybody,
>
> > > I wrote up a notebook worksheet to use in my Integral Calculus class
> > > that makes use of the @interact decorator. Whenever Ioad the worksheet
> > > for the first time, I get a deprecation warning regarding line 2558 of
> > > interact.py about deprecated function call syntax. Though not a major
> > > problem, this behavior is a little annoying. Is it due to the version
> > > of Sage I'm running, or is this an outstanding issue? I'll be happy to
> > > submit a ticket (never having done this, it'll be a good learning
> > > experience for me) if the latter.
>
> > Can you paste your interact code here or publish your worksheet so we
> > can see the code?
>
> > Thanks,
>
> > Jason

-- 
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-support
URL: http://www.sagemath.org

Reply via email to