Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

THREE is not defined

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?