Re: [sage-devel] Poll: set online=True as the default for threejs viewer

2019-02-15 Thread Andrey Novoseltsev
On Friday, 15 February 2019 14:21:45 UTC-7, mmarco wrote: > > 2) Patching sage to look for those files in the new addresses > There is actually a special function to provide these addresses, here is its use in SageMathCell: https://github.com/sagemath/sagecell/blob/master/backend_cell.py#L176 --

Re: [sage-devel] Poll: set online=True as the default for threejs viewer

2019-02-15 Thread mmarco
About that, I dealt with that for a test installation if jupyterhub/jupyterlab i am working in at my university. My solution consisted in two parts: 1) Copying the threejs files to a directory where the jupyterhub server can serve them (in my case, it was /usr/local/share/jupyterhub/static/ )

Re: [sage-devel] Poll: set online=True as the default for threejs viewer

2019-02-15 Thread Andrey Novoseltsev
The bottom line for all these data points, however, is not that "online HAS to be default" but rather "all these interfaces didn't figure out (or perhaps even didn't bother) yet how to make offline threejs work". And the solution is either to fix it case by case or, if it is difficult/impossibl

Re: [sage-devel] Poll: set online=True as the default for threejs viewer

2019-02-14 Thread Enrique Artal
It does affect also when using jupyterhub, (by the way, also to jsmol). El martes, 12 de febrero de 2019, 9:20:48 (UTC+1), Jeroen Demeyer escribió: > > > Why neither nbviewer nor binder are able to find > > (or serve or ?) these javascript files? > > The problem is these lines in src/sage/repl/r

Re: [sage-devel] Poll: set online=True as the default for threejs viewer

2019-02-12 Thread kcrisman
PS: I also disapprove any automatic internet connection without >> my explicit consent. But I feel like this is secondary here. > > > Sage defaults should work without internet. You should be able to build > Sage without internet. Etc. For instance, all doctests requiring internet > are th

Re: [sage-devel] Poll: set online=True as the default for threejs viewer

2019-02-12 Thread kcrisman
> PS: I also disapprove any automatic internet connection without > my explicit consent. But I feel like this is secondary here. Sage defaults should work without internet. You should be able to build Sage without internet. Etc. For instance, all doctests requiring internet are thus mark

Re: [sage-devel] Poll: set online=True as the default for threejs viewer

2019-02-12 Thread Jeroen Demeyer
Why neither nbviewer nor binder are able to find (or serve or ?) these javascript files? The problem is these lines in src/sage/repl/rich_output/backend_ipython.py These paths should be changed to take into account the base URL of the server (don't ask me *how* to do this precisely). -- Y

Re: [sage-devel] Poll: set online=True as the default for threejs viewer

2019-02-11 Thread Luca De Feo
Impact on privacy can be minimized with the attributes See : https://developer.mozilla.org/en-US/docs/Web/HTML/Element/script Security could be improved with subresource integry. See Re: [sage-devel] Poll: set online=True as the default for threejs viewer
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

Re: [sage-devel] Poll: set online=True as the default for threejs viewer

Hi Eric, Le 11/02/2019 à 22:16, Eric Gourgoulhon a écrit : 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 "onlin

Re: [sage-devel] Poll: set online=True as the default for threejs viewer

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

Re: [sage-devel] Poll: set online=True as the default for threejs viewer

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 detail

Re: [sage-devel] Poll: set online=True as the default for threejs viewer

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

Re: [sage-devel] Poll: set online=True as the default for threejs viewer

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 wrote: > > Hi, > > As pointed out in the Free Computatio

Re: [sage-devel] Poll: set online=True as the default for threejs viewer

On Mon, Feb 11, 2019 at 12:31 PM Eric Gourgoulhon 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 wi

[sage-devel] Poll: set online=True as the default for threejs viewer

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