<div dir="ltr">Michael Waskom's seaborn library does this in his widgets.py submodule. Maybe you can take some inspiration from that:<div><a href="https://github.com/mwaskom/seaborn/blob/master/seaborn/widgets.py">https://github.com/mwaskom/seaborn/blob/master/seaborn/widgets.py</a><br></div><div><br></div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Jul 20, 2016 at 5:25 AM, Jose Gomez-Dans <span dir="ltr"><<a href="mailto:jgomezdans@gmail.com" target="_blank">jgomezdans@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hello,<div><br></div><div>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. </div><div><br></div><div>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.</div><div><br></div><div>Thanks!</div><span class="HOEnZb"><font color="#888888"><div>Jose</div></font></span></div>
<br>_______________________________________________<br>
IPython-dev mailing list<br>
<a href="mailto:IPython-dev@scipy.org">IPython-dev@scipy.org</a><br>
<a href="https://mail.scipy.org/mailman/listinfo/ipython-dev" rel="noreferrer" target="_blank">https://mail.scipy.org/mailman/listinfo/ipython-dev</a><br>
<br></blockquote></div><br></div>