[IPython-dev] Feasilibity of widgets/layout for mimicking this

Brian Granger ellisonbg at gmail.com
Wed Aug 20 11:22:50 EDT 2014


Oh a few more things:

* Plotting is supported
* nbviewer support for widgets is currently being worked on
* To hide the code, I would write the code in a spearate .py file, and
import a top level function and call it.

On Wed, Aug 20, 2014 at 11:21 AM, Brian Granger <ellisonbg at gmail.com> wrote:
> * You should be able to do this without any JavaScript - just python.
> * I would wait a few weeks - we have some new container logic that is
> about to be merged into ipython master that will make this much
> easier.
> * After those changes are in I would estimate it will take about 1-2
> days to create this UI once you learn the widget APIs. May take more
> time if you need to wire up complex event handling for the UI
> elements.
>
> Cheers,
>
> Brian
>
> On Sun, Aug 17, 2014 at 1:54 PM, hugadams <hughesadam87 at gmail.com> wrote:
>> (Please disregard if doublepost; having some subscription issues)
>>
>> Hello,
>>
>> We are developing a spectroscopy library and want to put in some interactive
>> plots/utilities to make the software a bit more approachable to novices.
>> I'd really like to build the entire interactive plotting interface through
>> the notebook's new widget system.  My reasoning is as follows:
>>
>>    - All static plots are already matplotlib-based, so we wouldn't have to
>> write a seperate plotting api
>>    - Notebooks are inherently browser-ready, so sharing plots would be great
>>          - Is it likely that static nbviewer will eventually support
>> widgets?  Since the data is required, I figured not...
>>    - Our tutorials are already in notebooks, so we'd like to be consistent.
>>
>> I've watched all the videos I can find from the widgets, and think I'm fine
>> with the Python end; however, am finding it hard to come by lots of
>> information on controlling the layout of the widgets.  I know it's mostly
>> done in javascript, and I think the most complex view we will have will look
>> something like this:
>>
>> https://sites.google.com/site/shigemorita/home/2dshige
>>
>> How much time would you estimate a javascript novice ought to spend on
>> getting something like that in the notebook?  Can anyone share tutorials for
>> the layout portion of the widget API?  Any information is helpful.  Lastly,
>> does anyone have any hacky ideas of how to bury the source code so that the
>> widgets merely display, rather than the user copy/pasting the widget source
>> into a cell?
>>
>> Thanks
>>
>>
>>
>> --
>> View this message in context: http://python.6.x6.nabble.com/Feasilibity-of-widgets-layout-for-mimicking-this-tp5068197.html
>> Sent from the IPython - Development mailing list archive at Nabble.com.
>> _______________________________________________
>> IPython-dev mailing list
>> IPython-dev at scipy.org
>> http://mail.scipy.org/mailman/listinfo/ipython-dev
>
>
>
> --
> Brian E. Granger
> Cal Poly State University, San Luis Obispo
> @ellisonbg on Twitter and GitHub
> bgranger at calpoly.edu and ellisonbg at gmail.com



-- 
Brian E. Granger
Cal Poly State University, San Luis Obispo
@ellisonbg on Twitter and GitHub
bgranger at calpoly.edu and ellisonbg at gmail.com



More information about the IPython-dev mailing list