1 | initial version |
No, no idea what's wrong, but the following does work:
x = var('x')
FRAMES = 10
@parallel
def frame(i):
g = plot(sin(i*x), (x, 0, pi))
g.show()
P = [ p[1] for p in frame(range(1,FRAMES+1)) ]
p.s. parallel is awesome, but the documentation is sparse, and confusing, so keep the questions coming :) If you haven't found it yet, Trac ticket 11461 implements parallel for classes; I've been using it for a long animation project, and it works great!