python - Horizontal alignment of widgets in ipython notebook -
consider following example:
%pylab inline ipython.html import widgets ipython.html.widgets import interact import matplotlib.pyplot plt def f(values): data = { 'foo': ([1, 2, 3], [1, 4, 9]), 'bar': ([1, 2, 3], [9, 4, 1]), 'baz': ([1, 2, 3], [2, 2, 2]) } item in values: plt.plot(*data[item]) __ = interact(f, values=widgets.selectmultiple( height=1000, # going long list description=' ', options=['foo', 'bar', 'baz']))
having got selectmultiple widget , inline plot below it. can see selectmultiple list may long, obvious intention place plot hbox. pyplot not notebook widget.
are there ways solve problem without tricky workarounds?
thank you.
Comments
Post a Comment