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
Don't use installed_packages() for threejs URL #25665
Comments
Replying to @egourgoulhon:
That's a really bad idea for multiple reasons. |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
comment:5
Replying to @jdemeyer:
Yes probably. I guess that was to ensure compatibility between the version of threejs actually used by Sage. By the way, in the directory |
comment:7
That was indeed to ensure that the same version is used. If there is a better way - please implement it! And an obvious way to get rid of patched suffixes for this particular case is to just use the part of the version before the dot. |
Commit: |
Author: Frédéric Chapoton |
New commits:
|
Branch: u/chapoton/25665 |
comment:11
The use of is |
comment:12
Thanks for the fix! |
Reviewer: Eric Gourgoulhon |
Changed branch from u/chapoton/25665 to |
Since Sage 8.3.beta3, running the command
in a Jupyter notebook displays nothing. It was fine in Sage <= 8.3.beta2.
Note that the option
online=True
is required by tools like http://nbviewer.jupyter.org/ and CoCalc.It seems that the issue is due to the following change introduced in #25040 (which has been merged in Sage 8.3.beta3):
while in Sage <= 8.3.beta2, one has
Indeed the value of
installed_packages()['threejs']
is used to form the url in lines 749-750 ofsrc/sage/repl/rich_output/display_manager.py
CC: @embray @jdemeyer @antonio-rojas @kiwifb
Component: graphics
Keywords: threejs
Author: Frédéric Chapoton
Branch/Commit:
867e1ff
Reviewer: Eric Gourgoulhon
Issue created by migration from https://trac.sagemath.org/ticket/25665
The text was updated successfully, but these errors were encountered: