[IPython-dev] Loading nbextension on widget instantiation
Thomas Kluyver
takowl at gmail.com
Wed Jun 18 20:09:58 EDT 2014
On 18 June 2014 16:53, Nicholas Bollweg <nick.bollweg at gmail.com> wrote:
> Here's a whack at a cookiecutter pattern: I'm interested in feedback!
> https://github.com/bollwyvl/cookiecutter-ipython-widget
>
Looks good. I frown a bit on modules doing stuff (install_nbextension in
this case) at import time. I have my code install the nbextension (using
the symlink option) when the widget class is instantiated. We've designed
that API to be cheap when it's already installed, so you can use it as an
'ensure this is installed' mechanism.
Thomas
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/ipython-dev/attachments/20140618/4b5e65d0/attachment.html>
More information about the IPython-dev
mailing list