error in viewer='threejs'

15 views
Skip to first unread message

Rafel Amer Ramon

unread,
Jun 18, 2021, 7:24:01 PMJun 18
to sage-support
Hi,
I'm running sagemath 9.0 in Ubuntu 20.04 with jupyterhub and jupyterlab. When I try to display a simple ·D graphic like

p1 = sphere(color='red', opacity=.5)
show(p1,axes=True,viewer='threejs')

nothing is displayed.
In the console, I get the message

/hub/nbextensions/threejs/examples/js/controls/OrbitControls.js
/hub/nbextensions/threejs/build/three.min.js

not found.

Does anybody know how to solve the problem?
Thanks in advance.

Rafel Amer

Henri Girard

unread,
Jun 18, 2021, 7:32:53 PMJun 18
to sage-s...@googlegroups.com
I have the same configuration as yours and I get a box cube with red
sphere, I don't know if it's native working because I use npm in python3
(sage) to install it

https://threejs.org/docs/#manual/en/introduction/Installation

Henri Girard

unread,
Jun 18, 2021, 7:44:13 PMJun 18
to sage-s...@googlegroups.com
I use this one

https://pythreejs.readthedocs.io/en/stable/


On 18/06/2021 21:14, Rafel Amer Ramon wrote:
Reply all
Reply to author
Forward
0 new messages