Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

conda: 3d graphics do not show #34298

Closed
yuan-zhou opened this issue Aug 7, 2022 · 14 comments
Closed

conda: 3d graphics do not show #34298

yuan-zhou opened this issue Aug 7, 2022 · 14 comments

Comments

@yuan-zhou
Copy link

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.

CC: @mkoeppe @isuruf

Component: graphics

Author: Isuru Fernando

Branch/Commit: cc5a551

Reviewer: Yuan Zhou, Matthias Koeppe

Issue created by migration from https://trac.sagemath.org/ticket/34298

@yuan-zhou yuan-zhou added this to the sage-9.7 milestone Aug 7, 2022
@yuan-zhou
Copy link
Author

Attachment: graphic.html.gz

@yuan-zhou
Copy link
Author

comment:1

Attachment: graphic_online_true.html.gz

@mkoeppe

This comment has been minimized.

@mkoeppe mkoeppe changed the title 3d graphics do not show conda: 3d graphics do not show Aug 7, 2022
@mkoeppe

This comment has been minimized.

@isuruf
Copy link
Member

isuruf commented Aug 7, 2022

Branch: u/isuruf/threejs-conda

@isuruf
Copy link
Member

isuruf commented Aug 7, 2022

New commits:

0477269Update threejs-sage conda package name

@isuruf
Copy link
Member

isuruf commented Aug 7, 2022

Author: Isuru Fernando

@isuruf
Copy link
Member

isuruf commented Aug 7, 2022

Commit: 0477269

@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented Aug 7, 2022

Changed commit from 0477269 to cc5a551

@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented Aug 7, 2022

Branch pushed to git repo; I updated commit sha1. This was a forced push. New commits:

cc5a551Update threejs-sage conda package name

@mkoeppe
Copy link
Contributor

mkoeppe commented Aug 7, 2022

comment:7

@yuan-zhou: To test this, merge this ticket and repeat the lines with bootstrap and mamba env update in https://doc.sagemath.org/html/en/installation/conda.html#using-conda-to-provide-all-dependencies-for-the-sage-library-experimental

@yuan-zhou
Copy link
Author

comment:9

Great! It works for me. Thank you!

@mkoeppe
Copy link
Contributor

mkoeppe commented Aug 8, 2022

Reviewer: Yuan Zhou, Matthias Koeppe

@vbraun
Copy link
Member

vbraun commented Aug 29, 2022

Changed branch from u/isuruf/threejs-conda to cc5a551

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants