[IPython-dev] custom.js broken
Matthias Bussonnier
bussonniermatthias at gmail.com
Tue Jul 22 02:40:43 EDT 2014
Le 21 juil. 2014 à 20:21, TARUN GABA a écrit :
> Hi neil,
>
> You can try this:
>
> require(["jquery"], function($) {
>
> $([IPython.events]).on("app_initialized.NotebookApp", function () {
> // Add your extenstions here using $.getscript
> });
> });
>
>
> or:
>
> require([
> "base/js/namespace",
> "jquery"
> ], function(IPython, $) {
>
> IPython.events.on("app_initialized.NotebookApp", function () {
> // Add your extenstions here using $.getscript
> });
> });
>
>
> Since all the javascript variables are being called by require.js now, there is no `$` or 'IPython' in the global scope. [Most probably], one of the scripts mentioned above should work for you. I dont have much time today to test them though!
>
There are IPython and $ globals, custom.js is just loaded too early.
We are trying to keep the transition for custom.js smooth and are doing our be to have old version still working.
--
M
>
> Tarun
>
>
> _______________________________________________
> IPython-dev mailing list
> IPython-dev at scipy.org
> http://mail.scipy.org/mailman/listinfo/ipython-dev
More information about the IPython-dev
mailing list