Re: [sage-devel] Re: jsmol.js

2017-03-28 Thread Enrique Artal
Is there an easy way to make it work in jupyterhub? In jupyter, sage-7.6 works without any problem; for jupyterhub, threejs works but jsmol still doesn't. Thanks for the hard work. I can test any solution. Best, Enrique. El martes, 1 de noviembre de 2016, 20:03:52 (UTC+1), Volker Braun escribió:

Re: [sage-devel] Re: jsmol.js

2016-11-01 Thread Volker Braun
Its not a proper notebook extension; The code is in src/sage/repl/display/jsmol_iframe.py -- 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...@

Re: [sage-devel] Re: jsmol.js

2016-11-01 Thread William Stein
On Tue, Nov 1, 2016 at 11:44 AM, Volker Braun wrote: > On Tuesday, November 1, 2016 at 2:31:00 PM UTC-4, William wrote: >> >> This is happening in the web browser > > > Its actually happening in an iframe inside the web browser, so it doesn't > have jupyter's module loader. Afair jsmol just doesn'

Re: [sage-devel] Re: jsmol.js

2016-11-01 Thread Volker Braun
On Tuesday, November 1, 2016 at 2:31:00 PM UTC-4, William wrote: > > This is happening in the web browser Its actually happening in an iframe inside the web browser, so it doesn't have jupyter's module loader. Afair jsmol just doesn't work at all in the same namespace with juypter, without the

Re: [sage-devel] Re: jsmol.js

2016-11-01 Thread William Stein
On Tue, Nov 1, 2016 at 11:22 AM, Volker Braun wrote: > On Tuesday, November 1, 2016 at 12:16:58 PM UTC-4, William wrote: >> >> Your iframe hack doesn't respect Jupyter's base url options, which is >> the (only) problem for both Jupyterhub and SageMathCloud. > > > Because it can't, the compute kern

Re: [sage-devel] Re: jsmol.js

2016-11-01 Thread Volker Braun
On Tuesday, November 1, 2016 at 12:16:58 PM UTC-4, William wrote: > > Your iframe hack doesn't respect Jupyter's base url options, which is > the (only) problem for both Jupyterhub and SageMathCloud. Because it can't, the compute kernel does not (and arguably should not) know about the base ur

Re: [sage-devel] Re: jsmol.js

2016-11-01 Thread William Stein
On Tue, Nov 1, 2016 at 7:41 AM, Volker Braun wrote: > Jupyter(-hub) expects the worksheet to be self-contained, so the entire > graphics data needs to be embedded without any further calls to the backend. > Thats the only way that you can then share the notebook on nbviewer or > github, say, and g

Re: [sage-devel] Re: jsmol.js

2016-11-01 Thread Volker Braun
Jupyter(-hub) expects the worksheet to be self-contained, so the entire graphics data needs to be embedded without any further calls to the backend. Thats the only way that you can then share the notebook on nbviewer or github, say, and graphics still works. Jmol's architecture is fundamentally

Re: [sage-devel] Re: jsmol.js

2016-11-01 Thread Jonathan Gutow
Unfortunately, I have not got time to dig through the code and understand what needs to be done to pass data properly to jupyter hub. It appears that paths need to be specified using a particular utility function. That part may be easy, but it is not clear to me where everything needs to be adj

[sage-devel] Re: jsmol.js

2016-11-01 Thread Volker Braun
+1 On Tuesday, November 1, 2016 at 6:35:12 AM UTC-4, Eric Gourgoulhon wrote: > > Hi, > > A related note: there is ongoing work at > https://trac.sagemath.org/ticket/12402 > to use three.js for 3d graphics in Sage, especially in Jupyter notebook. > It is almost ready and has already features far

[sage-devel] Re: jsmol.js

2016-11-01 Thread Eric Gourgoulhon
Hi, A related note: there is ongoing work at https://trac.sagemath.org/ticket/12402 to use three.js for 3d graphics in Sage, especially in Jupyter notebook. It is almost ready and has already features far superior to jsmol (e.g. axes labels). Hopefully, it could be merged in Sage 7.5. Then, we

Re: [sage-devel] Re: jsmol.js

2016-11-01 Thread Samuel Lelievre
Note that Jmol and Jsmol were also discussed recently on debian-science-sagemath: http://lists.alioth.debian.org/pipermail/debian-science-sagemath/Week-of-Mon-20161010/000258.html http://lists.alioth.debian.org/pipermail/debian-science-sagemath/Week-of-Mon-20161017/000306.html http://lists.alioth

Re: [sage-devel] Re: jsmol.js

2016-10-31 Thread William Stein
On Mon, Oct 31, 2016 at 7:11 PM, kcrisman wrote: > > >>https://github.com/jupyterhub/jupyterhub/issues/401 >> >> which blocks 3d graphics in jupyter/sage working at all for sage and >> jupyter hub: >> >>https://github.com/sagemathinc/smc/issues/159 >> >> It seems like according to >> https

[sage-devel] Re: jsmol.js

2016-10-31 Thread kcrisman
https://github.com/jupyterhub/jupyterhub/issues/401 > > which blocks 3d graphics in jupyter/sage working at all for sage and > jupyter hub: > >https://github.com/sagemathinc/smc/issues/159 > > It seems like according to > https://github.com/jupyterhub/jupyterhub/issues/401 >