sagecell.makeSagecell is already polling to see whether it is loaded; thats 
of course totally fugly but should work. You just have to make sure that it 
is defined. If its only defined once a requirejs module loads then you 
don't have control over when. Instead move the

window.sagecell = window.sagecell || {};
sagecell.makeSagecell = function (args, k) {
...
}

outside of requirejs to always define the entrypoint into sagecell.


On Monday, April 25, 2016 at 3:10:02 AM UTC+2, Andrey Novoseltsev wrote:
>
> Update: 
>
> 1) Chrome does not work because of executing 
> sagecell.makeSagecell(...) 
> before 
> <script src="{{ static_url('embedded_sagecell.js') }}"></script> 
> finishes while Firefox waits till the script is processed. The issue 
> goes away if I wrap makeSagecell call in require(...), but I have no 
> idea how to make it work without, which is necessary for supporting 
> old pages. Any pointers?... I can't say I am a big fan of RequireJS, 
> but it felt natural to use it because Jupyter uses it. Should I 
> perhaps use something else instead/in addition? 
>
> 2) TAB-completion should be fixed. 
> 3) No progress on 3D yet. 
> 4) Didn't look into CORS problems with embedding yet. 
>

-- 
You received this message because you are subscribed to the Google Groups 
"sage-edu" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-edu+unsubscr...@googlegroups.com.
To post to this group, send email to sage-edu@googlegroups.com.
Visit this group at https://groups.google.com/group/sage-edu.
For more options, visit https://groups.google.com/d/optout.

Reply via email to