Subplots with dropdown

I am creating subplots with histogram and boxplot side by side . I want this to be more dynamic , like enabling the user to select the feature for which the histogram and the boxplot needs to be plotted . Is this possible using the python API ?