using multiple depended widgets from Jupyter notebook and @interactive, Problem if Dropdown Menu has only one option
问题 Hey so my code refers to this here : Multiple dependent widgets (dropdown menu) on Jupyter notebook from ipywidgets import interact, Dropdown enfrom ipywidgets import interact, Dropdown geo = {'USA':['CHI','NYC'],'Russia':['MOW','LED']} geo2={'CHI':['1','2'],'NYC':['3','4'],'MOW':['5','6'],'LED':['7','8']} countryW = Dropdown(options = geo.keys()) cityW = Dropdown(options = geo[countryW.value]) # options = geo[countryW.value] is to remove inital error but not that necessary. districtW =