THREE is not defined

asked 2022-06-14 21:19:14 +0100

zahar gravatar image

im running on Ubuntu 22.04 LTS (Jammy Jellyfish)

i was trying to run this example:

A = sphere((0, 0, 0), 1) + circle((0, 0), 1.5)

A.show(aspect_ratio=1)

from this page.

and i was getting Access to the file was denied when sage was automatically opening firefox.

then this link helped me.


now when firefox opens the file, i see blank screen.

pressing f12 and i see error:

Loading failed for the <script> with source “file:///usr/share/javascript/three/r122/three.min.js”.
Uncaught ReferenceError: THREE is not defined

(maybe this issue is related?)

did i missed something in the documentation?

how should i install three.js? or how to fix this?

edit retag flag offensive close merge delete

Comments

What version of Sage ? And how did you install it ?

Emmanuel Charpentier gravatar imageEmmanuel Charpentier ( 2022-06-15 15:16:28 +0100 )edit