Error getting 3d graphs

25 views
Skip to first unread message

Ingo Dahn

unread,
Jan 29, 2019, 3:20:02 PM1/29/19
to sage-cell
I get the following error message when I try to get a 3D graphics with show(plot) in an interactive context.

SageCellError.JPG

The normal SageCell connection is working. 

Any hints?


Andrey Novoseltsev

unread,
Jan 29, 2019, 3:53:23 PM1/29/19
to sage-cell
Similar problem was recently reported on sage-support:

A solution for a particular page may be to use threejs, but if anybody can understand what is wrong and what can be done server-side, that would be awesome. As far as I know it is a relatively recent issue which may be related to some CORS policy change in browsers. Another possibility is recent switch to Ubuntu 18.04 (from 16.04) on compute nodes, although I have no idea how exactly it could create such problems.

Ingo Dahn

unread,
Jan 30, 2019, 4:49:38 PM1/30/19
to Andrey Novoseltsev, sage-cell
Thanks, I can adapt my cells to use plot.show(viewer='threejs'). Where can I find the documentation of this show? (I migt want to change the perspective; the documentation of 3D plot uses plot3d, which doesn't have a show attribute.)

--
You received this message because you are subscribed to a topic in the Google Groups "sage-cell" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/sage-cell/nXiLf6u_1Mg/unsubscribe.
To unsubscribe from this group and all its topics, send an email to sage-cell+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/sage-cell/5d5711a8-f5a8-4663-8fab-12f95d041d5e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Andrey Novoseltsev

unread,
Jan 30, 2019, 8:30:11 PM1/30/19
to sage-cell
On Wednesday, 30 January 2019 14:49:38 UTC-7, Ingo Dahn wrote:
Thanks, I can adapt my cells to use plot.show(viewer='threejs'). Where can I find the documentation of this show? (I migt want to change the perspective; the documentation of 3D plot uses plot3d, which doesn't have a show attribute.)

I am not aware of any specific help on threejs or on any configuration for it apart from using offline or online URL for the script. This is of course unfortunate, would be great if some threejs expert improved the situation in Sage (there isn't really any SageMathCell specific code anymore).

David Guichard

unread,
Feb 26, 2019, 2:27:37 PM2/26/19
to sage-cell
Hi--

I posted that problem. So far I've been able to find this:


which appears to say that the server needs to add a header and then things will work.

Andrey Novoseltsev

unread,
Feb 26, 2019, 8:13:52 PM2/26/19
to sage-cell
On Tuesday, 26 February 2019 12:27:37 UTC-7, David Guichard wrote:
Hi--

I posted that problem. So far I've been able to find this:


which appears to say that the server needs to add a header and then things will work.

The server does try to add these headers, and it used to work, but now there is something wrong, perhaps related to the Cloudflare proxy. If someone knowledgeable about JSmol will figure what exactly has to be done, I'll be happy to do it.

Andrey Novoseltsev

unread,
Feb 26, 2019, 11:33:20 PM2/26/19
to sage-cell
As usual, it turned out to be a silly little thing:
PHP version in a path had to be bumped up when switching to a new Ubuntu release, so things got broken two months ago. Thanks for not giving up, David!
Reply all
Reply to author
Forward
0 new messages