On Tue, Nov 1, 2016 at 11:44 AM, Volker Braun <vbraun.n...@gmail.com> 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't work at all in the
> same namespace with juypter, without the iframe isolation.

OK, that sounds slightly more challenging.

When you create an iframe in a page, you can reach into the iframe and
set anything you want in the javascript scope of that iframe.  This is
how the Jupyter notebook sync for SMC works, which runs in an iframe.
 So right after creating the iframe, set something in the iframe
indicating the base url, then use that when getting jmol.

Where exactly is the source code for this notebook extension that you wrote?

 -- William


-- 
William (http://wstein.org)

-- 
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.

Reply via email to