sagemathinc / cocalc

CoCalc: Collaborative Calculation in the Cloud
https://CoCalc.com
Other
1.15k stars 211 forks source link

sagews: 3d animations not displayed correctly #4980

Open haraldschilly opened 3 years ago

haraldschilly commented 3 years ago

this works fine in jupyter, but sagews does this with the new sage 9.2 feature:

Screenshot from 2020-10-31 19-42-20

code

x, y = var('x, y')

def build_frame(t):
    e = parametric_plot3d([sin(2*x - t), sin(x + t), x], (x, 0, 2*pi), color='red')
    b = parametric_plot3d([cos(x + t), -sin(x - t), x], (x, 0, 2*pi), color='green')
    return e + b

frames = [build_frame(t) for t in (0, pi/32, pi/16, .., 2*pi)]
animate(frames, delay=5).interactive(projection='orthographic')
williamstein commented 3 years ago

WORKAROUND: Use Jupyter.