Hi Vincent, Le lundi 11 février 2019 21:22:45 UTC+1, vdelecroix a écrit :
> Dear all, > > Short answer: this poll is not legitimate > > Long answer: Saying that the rendering on nbviewer.jupyter.org > or mybinder.org is broken because of "online=False" is a > shortcut in any real explanation of the problem (even though > setting "online=True" makes it work). A vote without any detailed > explanation of the problem makes no sense to me. > > Sorry for the lack of explanation: the "online" option is described here: http://doc.sagemath.org/html/en/reference/plot3d/threejs.html It says: online – (default: False) Boolean determining whether the local standard package files are replaced by links to an online content delivery network 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) Eric. Vincent > > PS: I also disapprove any automatic internet connection without > my explicit consent. But I feel like this is secondary here. > > Le 11/02/2019 à 21:02, Thierry a écrit : > > Hi, > > > > Strong -1 ! > > > > - by making online=True the default, we harm the privacy of users, and > > we do not even let them the possibility to accept it first. I always > > feel betrayed by software that go online without my permission. > > > > - mybinder or nbviewer are not the primary target for Sage (and by far > > not the most used way to use Sage), so this should not set defaults, > > especially regarding the previous point. > > > > Isn't there a way to have a dedicated OnlineKernel inheriting from > > SageKernel that would set this option to True (or similar idea, i am not > > used to jupyter internals) ? I mean, Sage already differs from the > > command line and the notebook (e.g. jmol vs jsmol), we could do the same > > for mybinder and friends. > > > > Ciao, > > THierry > > > > > > On Tue, Feb 12, 2019 at 08:35:23AM +1300, François Bissey wrote: > >> I will formally vote for “True”. > >> > >> However I think the default should be "use online if available" and > fall back if not. > >> But that implies writing new code to check online availability. > >> > >> François > >> > >>> On 12/02/2019, at 06:31, Eric Gourgoulhon <egourg...@gmail.com > <javascript:>> wrote: > >>> > >>> Hi, > >>> > >>> As pointed out in the Free Computational Mathematics conference today, > the default value of the "online" option of the threejs 3d viewer is False. > This allows for the rendering without any internet connection, but it has > the serious drawback to prevent rendering with nbviewer.jupyter.org or > mybinder.org, as this example shows: > >>> > https://nbviewer.jupyter.org/github/egourgoulhon/SageMathTest/blob/master/Worksheets/threejs_online.ipynb > > >>> > >>> This poll is about reversing things, i.e. making online=True the > default. In particular, this will ease the sharing of notebooks via > mybinder.org. > >>> > >>> Please vote. > >>> > >>> 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+...@googlegroups.com <javascript:>. > >>> To post to this group, send email to sage-...@googlegroups.com > <javascript:>. > >>> Visit this group at https://groups.google.com/group/sage-devel. > >>> For more options, visit https://groups.google.com/d/optout. > >> > >> -- > >> 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+...@googlegroups.com <javascript:>. > >> To post to this group, send email to sage-...@googlegroups.com > <javascript:>. > >> Visit this group at https://groups.google.com/group/sage-devel. > >> For more options, visit https://groups.google.com/d/optout. > > > -- 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.