Transcribing a suggestion from an old thread on the Reinteract group:
Tero Jäntti wrote:
I like it, not because it outputs HTML, but because it presents lists nicely.
I like Reinteract because it is great for experimenting things. So, what if, when receiving a list of CustomResult objects, they would all be drawn as a list. With list comprehensions, such list would be great for experimenting with different parameter values, like:
[ plot( f(x, 5) ) for x in range(-5, 5) ]
[ rere.search(x, 'foo') for x in ['foo', 'foo|bar', '[a-z]+'] ]
That way you would immediately see which values suit best in whatever case you are doing.
Better yet, drawing nested lists of CustomResults as two-dimensional tables... Although that would eat a lot of screen space.
Another possibility would be to support a liste of custom results as a "slide deck" where you could page through the different results. Actually you could implement
slides([ plot( f(x, 5) ) for x in range(-5, 5) ])
Right now without any changes to the Reinteract core ... it would just be a widget (GtkNotebook with or without tabs, perhaps) that embedded each all the custom result widgets and allowed selection between them.