[IPython-dev] Loading nbextension on widget instantiation

Thomas Kluyver takowl at gmail.com
Thu Jun 19 14:40:50 EDT 2014


On 19 June 2014 11:08, Nicholas Bollweg <nick.bollweg at gmail.com> wrote:

> Sorry: I should have provided a link! _view_static, _view_module and
> _view_style, in the mixin
> <https://github.com/bollwyvl/cookiecutter-ipython-widget/blob/master/%7B%7Bcookiecutter.repo_name%7D%7D/%7B%7Bcookiecutter.pkg_name%7D%7D/widgets/%7B%7Bcookiecutter.widget_file%7D%7D.py#L23>
> .
>
>  Would there be a benefit to these being traitlets? I haven't spent much
>>> time with them (aside for front-end oriented widget stuff).
>>
>> Sorry, to what being traitlets?
>>
>
> None of these will be used client-side, as opposed to _view_name, which
> is (in create_view), but is there still some reason for them to be
> traitlets?
>

Well, something like _view_module will be used client side once I get to
the refactoring I've proposed. Other than that, you could use traitlets -
it gets you some type checking - but I don't see any huge advantage of
doing so.

Thomas
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/ipython-dev/attachments/20140619/a874a46f/attachment.html>


More information about the IPython-dev mailing list