Re: ipywidget GUI

Paul Hobson <[email protected]> Wed, 20 Jul 2016 07:01:54 -0700
Newsgroups gmane.comp.python.ipython.devel
Message-ID <CADT3MECcM0CB=ozgTX1QPcDafaD=Y3+XRhU1STUqZjKH-_LkZQ@mail.gmail.com>
Michael Waskom's seaborn library does this in his widgets.py submodule.
Maybe you can take some inspiration from that:
https://github.com/mwaskom/seaborn/blob/master/seaborn/widgets.py



On Wed, Jul 20, 2016 at 5:25 AM, Jose Gomez-Dans <[email protected]>
wrote:

> Hello,
>
> I have a set of functions that I'd like to expose in a notebook as HTML
> widgets, using ipywidgets (I think that's still the current name ;-D). In
> the past, I have used interact to do this, but in this case, I'd very much
> like to hide the pipework in a file, and maybe just have a simple function
> call in the notebook (e.g. gui_expt1()) that sets up the GUI etc.
>
> One option is to define e.g. a dictionary with the different GUI bits
> (ranges for sliders and so on), and pass it to the interact call, but I was
> wondering whether other approaches might be better.
>
> Thanks!
> Jose
>
> _______________________________________________
> IPython-dev mailing list
> [email protected]
> https://mail.scipy.org/mailman/listinfo/ipython-dev
>
>

_______________________________________________
IPython-dev mailing list
[email protected]
https://mail.scipy.org/mailman/listinfo/ipython-dev