Skip to content

Commit

Permalink
Trac #34298: conda: 3d graphics do not show
Browse files Browse the repository at this point in the history
Using Sage on Conda (installed as in
https://doc.sagemath.org/html/en/installation/conda.html#sec-
installation-conda-develop), the following gives an empty page in
Chrome. The same happens with the options `viewer='threejs'` or
`viewer='jsmol'`. See attached file graphic.html.
{{{
sage: plot3d(lambda u,v:(u^2+v^2)/4-2,(-2,2),(-2,2)).show()
Launched html viewer for Graphics3d Object
}}}
The file hardcodes the script as `/Users/yzh/mambaforge/envs/sage-
build/share/threejs-sage/r122/three.min.js`, which does not exist.
There is, however, a folder `/Users/yzh/mambaforge/envs/sage-
build/share/threejs`
{{{
(base) yzh@Yuans-MacBook threejs $ ls
LICENSE      build        package.json version
README.md    examples     src
}}}

The problem does not appear in Jupyter Notebook.

The problem does not appear either if the option `online=True` is
provided. See attached file graphic_online_true.html.

URL: https://trac.sagemath.org/34298
Reported by: yzh
Ticket author(s): Isuru Fernando
Reviewer(s): Yuan Zhou, Matthias Koeppe
  • Loading branch information
Release Manager committed Aug 27, 2022
2 parents 20d7f18 + cc5a551 commit fb050b1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion build/pkgs/threejs/distros/conda.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
three.js
threejs-sage=122.*

0 comments on commit fb050b1

Please sign in to comment.