[IPython-dev] Widget example that uses classes instead of globals?
Adam Hughes
hughesadam87 at gmail.com
Tue Sep 16 17:10:04 EDT 2014
I wanted to share a bit of context for this example, since it has been seen
by several of you on the list.
We are looking to implement a spectroscopy field called two-dimensional
correlation analysis. I spoke with the founder of the subject, and he said
he's only aware of a small, windows program that essentially is this GUI.
In fact, the original screenshot I sent was from that small program. A
matlab program called MIDAS also did a really job of porting some 2DCS
principles. We've built 2DCS directly into our new spectroscopy library,
so being able to give users a GUI-driven experience ON TOP OF the
pandas-based API is our golden ticket. This vision of GUI when you want
it, API when you need it in the notebook I hope will catch on. I really am
appreciative of all of the help you guys gave me on this thread an hope to
deliver.
Here is the analysis through the API if it's interesting to anyone.
http://nbviewer.ipython.org/github/hugadams/pyuvvis/blob/master/examples/Notebooks/correlation_p1.ipynb
This is also just an incomplete draft.
On Tue, Sep 16, 2014 at 3:22 PM, Fernando Perez <fperez.net at gmail.com>
wrote:
>
> On Mon, Sep 15, 2014 at 8:19 PM, Nicholas Bollweg <nick.bollweg at gmail.com>
> wrote:
>
>> @adam: Sorry it took me a while to respond. Here is an updated version of
>> the fake GUI, implemented as a series of classes: a standalone graph, a
>> couple reusable control components and the full-blown end user GUI. I tried
>> to put a few examples of different techniques in that we have used: link,
>> on_trait_changed, CSS, Bootstrap. I didn't do any custom Backbone, as that
>> is a whole other kettle of fish.
>>
>> <http://goog_798561651>
>>>
>>> http://nbviewer.ipython.org/gist/bollwyvl/ddd4bf5d7c879012fa2c
>>>
>>
> Wonderful example, thanks Nicholas!
>
> I've made a minimally modified version here:
>
> https://gist.github.com/fperez/c65b06b260bde5663dbf
>
> just to illustrate how to actually plot data in the 'plot area' with
> matplotlib.
>
> I may use this in a talk I'm giving tomorrow, if so I'll do so with full
> credit to you.
>
> Thanks for sharing!
>
> f
>
>
> --
> Fernando Perez (@fperez_org; http://fperez.org)
> fperez.net-at-gmail: mailing lists only (I ignore this when swamped!)
> fernando.perez-at-berkeley: contact me here for any direct mail
>
> _______________________________________________
> IPython-dev mailing list
> IPython-dev at scipy.org
> http://mail.scipy.org/mailman/listinfo/ipython-dev
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/ipython-dev/attachments/20140916/8d1772d9/attachment.html>
More information about the IPython-dev
mailing list