#!/usr/bin/env python # coding: utf-8 # # So easy, *voilĂ *! # # In this example notebook, we demonstrate how VoilĂ  can render notebooks making use of ipywidget's `@interact`. # In[ ]: 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])) # In[ ]: