[IPython-dev] Example of a minimal custom IPython client?

MinRK benjaminrk at gmail.com
Wed May 8 18:20:23 EDT 2013


Here is a simple script that connects to an existing kernel and watches a
particular variable name, displaying its representation every cell (if it
changes). The same could be done for HTML table representations of data
frames, etc.

https://gist.github.com/5544117

-MinRK


On Wed, May 8, 2013 at 2:38 PM, Thomas Kluyver <takowl at gmail.com> wrote:

> It's an interesting idea. Unfortunately, there's nothing in the message
> spec to subscribe to updates on a particular object or group of objects,
> and I can't off the top of my head think how we'd add that. You could send
> the object of interest to the frontend after each execution in the kernel,
> although that could be inefficient if you have a large object that you're
> making frequent changes to.
>
> I think all our frontends so far are designed around entering and running
> code. You could have a look at how Spyder's object inspector is
> implemented, though.
>
> Best wishes,
> Thomas
>
>
> On 8 May 2013 18:49, Greg Wilson <gvwilson at third-bit.com> wrote:
>
>> Small world :-)
>> - G
>>
>> On 2013-05-08 1:35 PM, Patrick Surry wrote:
>> > I've become a big fan of IPython + pandas for data analysis, and have
>> got interested in the idea of building a simple UI for end-user interaction
>> with pandas DataFrame and Series objects. The idea being to streamline the
>> initial exploratory data analysis process.  Sort of like an object-specific
>> "watch" window that you'd use in a debugger.
>> >
>> > It seems like the IPython communication model is ideal for that kind of
>> thing, so I could potentially build a little UI analogous to the qtconsole
>> which could subscribe to the server process and watch whatever object I'm
>> interested in, and maybe have UI elements that issued python statements
>> back to the server.  But I'm new to the dev side of IPython and haven't
>> figured out where to start.
>> >
>> > I'm curious to know if anyone has done anything like that before, and
>> whether there are any examples I could work from.  Perhaps the "Hello
>> World" of custom IPython clients?
>> >
>> > Advice welcome,
>> >
>> > Thanks,
>> > Patrick
>> >
>> > _______________________________________________
>> > IPython-dev mailing list
>> > IPython-dev at scipy.org
>> > http://mail.scipy.org/mailman/listinfo/ipython-dev
>>
>> _______________________________________________
>> IPython-dev mailing list
>> IPython-dev at scipy.org
>> http://mail.scipy.org/mailman/listinfo/ipython-dev
>>
>
>
> _______________________________________________
> 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/20130508/0ded97dc/attachment.html>


More information about the IPython-dev mailing list