-
-
Notifications
You must be signed in to change notification settings - Fork 405
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
make: docbuilding should depend on jmol #21014
Comments
Commit: |
New commits:
|
Reviewer: Jeroen Demeyer |
comment:4
If we make plots then we run arbitrary Sage code. So all runtime dependencies are docbuild dependencies, no? And if not then somebody just hasn't make a sufficiently complicated plot yet. What I'm proposing thus is to just use a dependency like
|
comment:5
indeed, trouble probably started few months ago when people did few tickets putting nicer pictures into the docs. |
comment:6
Replying to @vbraun:
This used to be the case a while ago, but it makes the parallel build less efficient. For example, currently R can be built in parallel with the docs. With your proposal, parallel builds would take more time. I'm not saying that this is a huge problem, just pointing it out. |
comment:7
We could add |
comment:8
Replying to @jdemeyer:
Yes, until somebody adds an R plot to the docs. Then suddenly you get hard-to-debug parallel build failures. |
comment:9
Replying to @jhpalmieri:
Sorry, it's already there. Never mind. |
comment:10
Replying to @jdemeyer:
but this is only true as long as there is no doctest using R somewhere you do not expect it to be used. With your proposal, parallel builds would take more time. I'm not saying that this is a huge problem, just pointing it out. |
comment:11
Replying to @vbraun:
You could easily add a buildbot testing |
comment:12
Sorry, but this issue |
This comment has been minimized.
This comment has been minimized.
comment:14
That's not very explicit. What exactly is the problem since I cannot reproduce it? |
comment:15
Also: it's not a problem if doctests use jmol, this is only about docbuilding. |
Changed reviewer from Jeroen Demeyer to Jeroen Demeyer, Dima Pasechnik |
comment:16
I don't think that the fact that not everybody can reproduce this (race conditions are not easy in this sense) should postpone this ticket. |
comment:17
The issue is that some plots in the documentation require jmol, so if jmol happens not to be built early enough, docbuilding can fail. I just saw this yesterday on a fresh copy of 7.3.beta7, and there are other reports in sage-devel and sage-release. |
comment:18
Replying to @jhpalmieri:
I understand that, but nobody has been explicit about which plot is the one which is supposed to fail without jmol. And again, I cannot reproduce the problem: for me, the doc builds without jmol. I really don't like to add a "fix" for a problem when it's not at all clear what the problem is and whether the "fix" fixes it. I feel that the problem is more subtle and we're missing something here... |
comment:19
It fails for me. Here's what I did: I started with a fresh tarball, ran |
Attachment: plot.log |
comment:20
There are numerous
which is to be expected. I wonder what is in these |
comment:21
I did a
I'm pretty sure thats 100% reproducable, though takes a long time. |
comment:22
Replying to @vbraun:
I'm pretty sure thats not the case. |
This comment has been minimized.
This comment has been minimized.
comment:23
I agree with strogdon, it would be good to see also the |
comment:24
The txt files are auto-deleted by the sage cleaner. In any case I can tell you whats wrong, jmol is not a dependency of
|
comment:25
Those
|
comment:26
Further analysis points to this
So the problem only occurs if Java is installed. But this leaves the question: if Tachyon works, why not always use Tachyon to produce the plots? |
comment:27
To anybody which does have a working Java: does the interactive JMol applet actually work in the generated documentation? If not, there is no point in using JMol for those plots. |
comment:28
We use jmol (and java) to build the png preview of the plot server-side. This is then displayed by the notebook until the 3-d plot is activated by clicking on it. The actual in-browser animation is via jsmol (javascript). |
comment:29
besides, the quality of plots produced by Tachyon is not as good as with jmol... |
tachyon output |
Attachment: nose.png Attachment: nose_jmol.png jmol output (smoother, no artefacts...) |
Changed reviewer from Jeroen Demeyer, Dima Pasechnik to Dima Pasechnik |
Changed branch from u/jhpalmieri/doc-build-depends-on-jmol to |
See https://groups.google.com/d/msg/sage-devel/SlpXXtK_Cy0/QynwDq2gAAAJ and https://groups.google.com/d/msg/sage-release/jQmE2nsnbDI/u32jH0vOAQAJ.
Component: build
Author: John Palmieri
Branch/Commit:
d741fbb
Reviewer: Dima Pasechnik
Issue created by migration from https://trac.sagemath.org/ticket/21014
The text was updated successfully, but these errors were encountered: