[IPython-dev] [ANN] IPython 3.0.0rc1
Max Linke
max_linke at gmx.de
Tue Feb 17 16:25:52 EST 2015
Thanks for the help I found a way now that works reliable for me.
require([
'base/js/namespace',
'base/js/events'
], function(IPython, events) {
events.on('app_initialized.NotebookApp', function(){
require(['/nbextensions/codefolding/codefolding.js']);
IPython.load_extensions('toc', 'hide_input_all', 'macro-cell',
'calico-spell-check', 'calico-document-tools',
'theme_toggle');
});
});
I got it working through the tips here and looking at the examples of
the current custom.js template. But since I don't know javascript or the
libraries (require, jquery) used this is not really straight forward to
arrive at this.
In 2.4. I just needed to use 'IPython.load_extensions()' which was nice
and really straight forward.
Is it documented somewhere what the recommended way is of enabling
extensions in the notebook? I can't find anything in the online docs and
most extensions I find seem to use another way to load it.
best Max
On 02/16/2015 07:51 PM, Matthias Bussonnier wrote:
> Instead or in supplement of listening to events, you might want to
> use requires to be sure the dependencies are loaded in the right order.
>
> Cheers,
>
>
>
> _______________________________________________
> 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