On Sun, Oct 29, 2017 at 9:31 AM Simon Willerton <s.willer...@sheffield.ac.uk> wrote:
> I have the following code to help my students visualize surfaces > > t, theta = var('t, theta', domain='real') > x(t) = cosh(t) > z(t) = t > formula = (x(t)*cos(theta), x(t)*sin(theta), z(t)) > parameters = ((t, -3, 3), (theta, -pi, pi)) > surface = ParametrizedSurface3D(formula, parameters) > show(surface.plot(aspect_ratio=1, color='yellow'), viewer='threejs') > > This works fine in SageMathCell (running SageMath 8.0) see > > http://simonwillerton.staff.shef.ac.uk/teaching/MAS336/sage_cell_surfaces.html > The reason I'm using threejs is so that many plots can been seen on a > single page. Without it (using jmol, I think) this wasn't possible. > > The code also works fine in a jupyter notebook running SageMath 8.0 on OS > X in both firefox and chrome. > > However the code does not run in SageMath 8.0 on CoCalc. In a sagews it > actually gives an error, > It works fine in CoCalc (and uses threejs) if you do not give the viewer= option. and in Jupyter (on firefox or chrome) the image just never appears. > Changing the kernel to 7.6 on Jupyter on CoCalc allows the image to appear > correctly. > > Should I not be using threejs or is the problem with CoCalc? > > Cheers, > > Simon > > > -- > You received this message because you are subscribed to the Google Groups > "sage-support" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to sage-support+unsubscr...@googlegroups.com. > To post to this group, send email to sage-support@googlegroups.com. > Visit this group at https://groups.google.com/group/sage-support. > For more options, visit https://groups.google.com/d/optout. > -- -- William Stein -- You received this message because you are subscribed to the Google Groups "sage-support" group. To unsubscribe from this group and stop receiving emails from it, send an email to sage-support+unsubscr...@googlegroups.com. To post to this group, send email to sage-support@googlegroups.com. Visit this group at https://groups.google.com/group/sage-support. For more options, visit https://groups.google.com/d/optout.