[sage-support] Re: @interact with non-Sage objects

2010-01-24 Thread gsever
On Jan 24, 12:39 pm, Harald Schilly wrote: > On Jan 24, 6:50 pm, gsever wrote: > > > Added as first wiki entry :) > > No problem, and i hope it's ok that i pushed you to do it ;) > > http://twitter.com/sagemath/status/8158003421 It was my pleasure Harald. Sag

[sage-support] Error while integrating a form of gamma distribution

2010-01-24 Thread gsever
Hello, Please see my published test notebook at: http://www.sagenb.org/home/pub/1408/ variable of integration must be a simple or subscripted variable I can get this form integrating properly, and resulting with expected gamma(nu)/(alpha^nu*s) f(x) = (mu/s)*x**(nu*mu-1)*exp(-alpha*x**mu) s = in

[sage-support] Re: @interact with non-Sage objects

2010-01-24 Thread gsever
On Jan 24, 11:14 am, Harald Schilly wrote: > On Jan 24, 5:06 pm, gsever wrote: > > > Thanks this helped. Adding a plt.clf() clear the figure after each > > plot update. > > no problem, and i looked for a .reset or similar, thanks for the .clr > ()! > Can

[sage-support] Re: @interact with non-Sage objects

2010-01-24 Thread gsever
On Jan 24, 5:49 am, Harald Schilly wrote: > Last line must be plt.savefig('plt.png') and not .show() because you > are on a website and saved files are shown. When I tried it first, it > didn't update the image because it was somehow locally cached. On > second try it worked ... > > H Thanks t

[sage-support] @interact with non-Sage objects

2010-01-24 Thread gsever
Hello, Is it possible to use the @interact with the following code-snippet? I want experiment with distributions functions that Scipy have but not in Sage. Thanks from scipy import stats import numpy as np import matplotlib.pyplot as plt @interact def plot_norm(loc=(0,(0,10)), scale=(1,(1,10)))