Opened 11 years ago
Closed 8 years ago
#11275 closed defect (fixed)
bug in canvas3d html5 rendering of 3d plots
Reported by: | William Stein | Owned by: | jason, was |
---|---|---|---|
Priority: | major | Milestone: | sage-duplicate/invalid/wontfix |
Component: | graphics | Keywords: | |
Cc: | Volker Braun, Punarbasu Purkayastha, Andrey Novoseltsev | Merged in: | |
Authors: | Reviewers: | Jeroen Demeyer | |
Report Upstream: | Fixed upstream, but not in a stable release. | Work issues: | |
Branch: | Commit: | ||
Dependencies: | Stopgaps: |
Description
In the notebook, try this:
First, in an input cell put this and evaluate:
G = sphere() #+ sphere((0,0,1),color='red') G.show(viewer='canvas3d') G.show(viewer='tachyon')
The above should work fine. Then remove the # comment in the first line to get
G = sphere() + sphere((0,0,1),color='red') G.show(viewer='canvas3d') G.show(viewer='tachyon')
Notice that the canvas3d output is wrong. What seems to happen is that if you modify a given input cell, then the canvas3d output *never* gets changed. This is very confusing.
Change History (13)
comment:1 follow-up: 7 Changed 9 years ago by
comment:2 Changed 9 years ago by
Milestone: | sage-5.11 → sage-5.12 |
---|
comment:3 Changed 9 years ago by
Milestone: | sage-6.1 → sage-6.2 |
---|
comment:4 Changed 8 years ago by
Milestone: | sage-6.2 → sage-6.3 |
---|
comment:5 Changed 8 years ago by
Milestone: | sage-6.3 → sage-6.4 |
---|
comment:6 Changed 8 years ago by
I figured out what this is - it's a cache busting issue with javascript or something like that in the browser. We figured out how to deal with this with jsmol, probably something similar should work here - as simple as the usual "?+random digits" trick, perhaps. May need to happen in the notebook code, though.
comment:7 Changed 8 years ago by
Possibly related:
var("y") plot(vector([1,3,4]),viewer='canvas3d')just brings up a Jmol thing, and plotting a
line
with this viewer brings up a black box.
Unrelated, this is actually the same as #17025.
comment:8 Changed 8 years ago by
I've finally reported this "upstream" at https://github.com/sagemath/sagenb/issues/255
comment:9 Changed 8 years ago by
This has a fix upstream that needs review at https://github.com/sagemath/sagenb/pull/284 . I really can't believe this was never fixed.
comment:10 Changed 8 years ago by
Cc: | Volker Braun Punarbasu Purkayastha Andrey Novoseltsev added |
---|
This is 100% ready to go, just needs a review upstream!
comment:11 Changed 8 years ago by
Milestone: | sage-6.4 → sage-pending |
---|---|
Report Upstream: | N/A → Fixed upstream, but not in a stable release. |
Status: | new → needs_review |
This is now merged, next sagenb update will have it.
comment:12 Changed 8 years ago by
Milestone: | sage-pending → sage-duplicate/invalid/wontfix |
---|---|
Reviewers: | → Jeroen Demeyer |
Status: | needs_review → positive_review |
Fixed by #10057.
comment:13 Changed 8 years ago by
Resolution: | → fixed |
---|---|
Status: | positive_review → closed |
Possibly related:
just brings up a Jmol thing, and plotting a
line
with this viewer brings up a black box.