In this example notebook, we demonstrate how Voilà can render notebooks making use of ipywidget's @interact
.
from ipywidgets import HBox, VBox, IntSlider, interactive_output
from IPython.display import display
a = IntSlider()
b = IntSlider()
def f(a, b):
print("{} * {} = {}".format(a, b, a * b))
out = interactive_output(f, { "a": a, "b": b })
display(HBox([VBox([a, b]), out]))