Le lundi 11 février 2019 22:25:37 UTC+1, vdelecroix a écrit : > > > > > Basically, threejs needs two javascript files to run: three.min.js and > > OrbitControls.js > > If online=False (the current default), it searches for them in > > SAGE_HOME/local/share/threejs > > which is not available to nbviewer, nor to binder. > > If online=True, the files are downloaded from > > https://cdn.rawgit.com/mrdoob/three.js > > (cf. lines 751-752 of src/sage/repl/rich_output/display_manager.py) > > Thanks! > > If the files are available locally, then it is a very reasonable default > to have online=False. Why neither nbviewer nor binder are able to find > (or serve or ?) these javascript files?
This is probably where the code could be improved. Regarding binder, could the local/share/threejs folder be provided via the Dockerfile, an example of which being https://github.com/nthiery/harmonic-modules/blob/master/Dockerfile ? Eric. -- You received this message because you are subscribed to the Google Groups "sage-devel" group. To unsubscribe from this group and stop receiving emails from it, send an email to sage-devel+unsubscr...@googlegroups.com. To post to this group, send email to sage-devel@googlegroups.com. Visit this group at https://groups.google.com/group/sage-devel. For more options, visit https://groups.google.com/d/optout.