Made it work in Chrome via https://github.com/sagemath/sagecell/commit/95d2b406026ea7efc73a91ef693a1dd9fb5946c6 (my attempts to create all wrappers using a loop were not successful)
Made some progress on CORS but there are still issues. On Mon, Apr 25, 2016 at 2:35 AM, Volker Braun <vbraun.n...@gmail.com> wrote: > 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-notebook" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to sage-notebook+unsubscr...@googlegroups.com. > Visit this group at https://groups.google.com/group/sage-notebook. > > For more options, visit https://groups.google.com/d/optout. -- You received this message because you are subscribed to the Google Groups "sage-support" group. To unsubscribe from this group and stop receiving emails from it, send an email to sage-support+unsubscr...@googlegroups.com. To post to this group, send email to sage-support@googlegroups.com. Visit this group at https://groups.google.com/group/sage-support. For more options, visit https://groups.google.com/d/optout.