-
-
Notifications
You must be signed in to change notification settings - Fork 514
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
Three.js: Upgrade to r122 #30915
Comments
Branch: u/paulmasson/threejs-r122 |
comment:2
Joshua, should only need to do New commits:
|
Commit: |
comment:5
Of course, the HTML plots produced are still looking for |
comment:6
Replying to @jcamp0x2a:
No, I overlooked that before meeting a friend for dinner. Will fix tomorrow, but my friend pointed out another development: Mr.doob reversed himself and won’t be deprecating |
comment:7
Replying to @paulmasson:
I would agree. It also allows everything to be bundled up into a single javascript file instead of having to include OrbitControls and now all the line stuff separately. So I think it's a positive change even if |
Branch pushed to git repo; I updated commit sha1. New commits:
|
comment:10
The new commit updates the link generated internally, both for online and offline use. I changed the name of the internal function to recognize this. Doctests pass on the two modified files. Matthias, part of the reason I wanted the repository moved to the SageMath organization is that the online links must point to my personal repository on the CDN. If someone creates notebooks with these changes in place for online use, they may fail to work in the future when the repository is moved. If you're fine with that possibility, then we can procede with the upgrade. Joshua, before testing this ticket again let's hear back from Matthais. |
comment:11
Makes sense. Am I understanding correctly that |
comment:12
Replying to @mkoeppe:
Once a file is in the CDN it is always available for future use and is indeed referenced by tag. According to the documentation the files remain even when a repository is deleted, so presumably it can handle movement of the repository between organizations. If you want us to proceed with the current setup then we can do that without too much worry after all. |
comment:13
Thanks. And for the offline mode - does it make sense to make several versions available in SAGE_LOCAL? |
comment:14
Also, does the offline mode depend at all on the symbolic link (My guess is that it does not and we can remove this symbolic link. At least that's what I gather from a comment in #30476 - it seems that threejs offline graphics also works with system jupyter notebook, which does not have that symbolic link.) |
comment:15
Replying to @mkoeppe:
No, it does not. The Three.js template is specifically tailored to the release currently in use. Mr. Doob sometimes breaks things. Backwards compatibility is not assured. |
comment:16
Replying to @mkoeppe:
The system Jupyter notebook needs to find the local files for our Three.js viewer to work. As far as I know the symbolic link is how that happens. If you have a better idea in mind for letting the notebook know where the files are, then go for it. I'm still not clear on this question. |
comment:17
Replying to @paulmasson:
This seems to contradict what @EmmanuelCharpentier reported in #30476 regarding offline threejs in the system jupyter notebook. |
comment:18
Replying to @paulmasson:
Hmm... perhaps it would be better to link the offline plots to a specific version. For example, suppose I generate an offline plot using the template that works for r117. The plot links to That's not an issue for the Jupyter notebook since it's a "live" environment and you can always just re-run the cell to get an up-to-date plot. It's also not an issue for the CDN scripts since those are tied to specific versions. Although even if we fixed this, it'd still be fragile in that moving/deleting SageMath would also break old plots. To make a fully self-contained and isolated offline plot would probably require including the content of |
comment:19
In any case, so that we can make progress here, I have forked the repo at https://github.com/sagemath/threejs-sage |
comment:20
Replying to @jcamp0x2a:
Yes, that's a typical operation.
Right. So let's please do a versioned installation scheme to address this issue. Basically, upgrades should not break operation of older things.
Well, but isn't it an important part of the point of the notebook format that the outputs are also stored?
(Moving the Sage tree is not supported.) |
comment:21
Replying to @mkoeppe:
Again the key use case to consider is to have one ("system") installation of the Jupyter notebook or JupyterLab, which the user uses to access multiple installations of different versions of the Sage kernel. |
comment:22
Replying to @jcamp0x2a:
Sounds like this would be a useful option.
Does a more restrictive license than MIT apply? https://github.com/sagemath/threejs-sage/blob/main/LICENSE |
comment:47
Replying to @paulmasson:
No. The issue is about Here is an example.
As @enriqueartal has reported above, our offline threejs graphics needs Do you agree? So this means that we need a versioned installation scheme. |
Changed author from Paul Masson to Paul Masson, Joshua Campbell |
comment:48
Replying to @paulmasson:
Hi Paul, I found a failing doctest in If you are okay with the additional changes, I think you or I could mark it as positive review. |
Changed branch from u/paulmasson/threejs-r122 to u/gh-jcamp0x2a/threejs-r122 |
comment:49
Replying to @mkoeppe:
Including the I'd like to get this ticket merged as-is so I can make some headway on my "fat" lines branch. So perhaps a follow-up ticket? |
comment:50
Replying to @mkoeppe:
Moving discussion to #30972 |
comment:51
Replying to @jcamp0x2a:
LGTM |
Reviewer: Joshua Campbell, Paul Masson |
comment:52
Public methods such as |
comment:53
Joshua, would you just revert the method name? It's only used internally and I no longer care if the script name doesn't match the output. |
Branch pushed to git repo; I updated commit sha1. New commits:
|
comment:55
Replying to @paulmasson:
Done. Did a quick sanity check and it still runs without issue in all four combinations of command-line/jupyter and online/offline. |
Changed reviewer from Joshua Campbell, Paul Masson to Joshua Campbell, Paul Masson, Matthias Koeppe |
comment:57
Joshua, by the way, have you tested if the offline mode works with JupyterLab too? |
comment:58
Replying to @mkoeppe:
Yes, sorry, that's actually what I meant by "jupyter". I've been using it in preference to the traditional notebook lately. I've gone back and tested with the traditional notebook and it works fine as well. Oh, and I'm going to try to spend some time later today looking at your #30972. |
comment:59
Replying to @jcamp0x2a:
Great, thanks, I was not sure whether the JupyterLab server also serves the |
Changed branch from u/gh-jcamp0x2a/threejs-r122 to |
CC: @jcamp0x2a @kiwifb @mkoeppe @EmmanuelCharpentier @enriqueartal
Component: graphics
Keywords: threejs
Author: Paul Masson, Joshua Campbell
Branch/Commit:
c097439
Reviewer: Joshua Campbell, Paul Masson, Matthias Koeppe
Issue created by migration from https://trac.sagemath.org/ticket/30915
The text was updated successfully, but these errors were encountered: