Hi I have below dropdown:
from ipywidgets import interact, interactive, fixed, interact_manual
import ipywidgets as widgets
def f(Books):
return Books
interact(f, Books=['a','b','c','d']);
This populates a dropdown list allowing user to choose from a, b, c, d.
Let's say user chooses one of the four.
How do you reference the result?
I want to use the output of the dropdown as a variable in other formulas.
ex.
if Books = a:
x = 1+1