Running on a bokeh server, you can interactively edit any objects property using only python code. For a select box you can attach a function to check for changes on your select menu and then specify in the python function, how to change your the input objects based on the selected value. Something similar to this.
from bokeh.models import Select, TextInput
from bokeh.layouts import column, row
select = Select(options=["fruits", "human"], value="fruits")
text_input_1 = TextInput()
text_input_2 = TextInput()
layout = column(select, row(text_input_1, text_input_2))
def select_change(attrname, old, new):
choice = new
if choice == "fruits":
text_input_1.title = "Price"
text_input_2.title = "Quantity"
elif choice == "human":
text_input_1.title = "Name"
text_input_2.title = "Age"
select.on_change('value', select_change)
You can also do this in javascript by writing a callback function and given to the callback the objects you want to modify and modifying them in the javascript code being executed. The javascript option has the advantage of not needing to run a bokeh server.
select.callback = CustomJS(args=dict(s=select, t_1=text_input_1, t_2=text_input_2), code="""
if (s.value == "fruits") {
t_1.title = "Price";
t_2.title = "Quantity";
}
else if (s.value == "human") {
t_1.title = "Name";
t_2.title = "Age";
}
""")