April 2018
Beginner
238 pages
7h 13m
English
We can link together two widgets using code like this:
import ipywidgets as widgetsfloatTextBox = widgets.FloatText()floatSlider = widgets.FloatSlider()display(floatTextBox,floatSlider)widgetLink = widgets.jslink((floatTextBox, 'value'), (floatSlider, 'value'))
It produces a display of both widgets linked together. If you move the slider, then the textbox value will be updated and vice versa:
