[IPython-dev] ANN: numtraits v0.2
Nicholas Bollweg
nick.bollweg at gmail.com
Thu Oct 1 13:57:39 EDT 2015
To answer my own questions:
NumericalTrait doesn't yet work with ipywidgets. But it probably could!
We made an example that uses a passthrough traitlet:
http://nbviewer.ipython.org/gist/anonymous/0358c8fee545f6ab5853
Everything works pretty well, with two sliders exposing the same value,
automatically handling the translation. Nice!
The javascript side is a bit ugly, as there isn't a ton of resources for
potentially complex forms. As it is, quantities
<https://github.com/gentooboontoo/js-quantities> is the best option.
It also looks like openmdao units would be possible, but it's all pretty
baked in... perhaps this is an opportunity for entry_points?
As an aside, we tried to put that gist up as a binder, but ran into some
issues... i'll raise them appropriately!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/ipython-dev/attachments/20151001/397eb6b8/attachment.html>
More information about the IPython-dev
mailing list