Ask Your Question

Revision history [back]

How about something like this (live example here):

@interact(layout=[['a','b'],['t1'],['c','d'],['t2']])
def _(a=x^2, b=[1..3], c=-x ,d=[1..3],
      t1=text_control('Some text'), t2=text_control('Some other text') ):

        show(plot(a*b+c*d,0,3))

You can keep adding rows in this form of the layout. You can force the buttons closer to the input boxes by adding additional text controls after the buttons containing blank space: the automatic alignment appears to depend on the number of items in a row.