I'm making a dropdown which displays a certain plot depending on what is selected.
I've made my dropdown and begun my CustomJS callback function. At the moment, all I want to do is log whatever option is selected in the dropdown, but obviously I cant just console.log(myDropDownMenu.value);
myDropDownMenu = Select(options=['uniform', 'normal', 'lognormal'], value='uniform', title='Distribution')
callback = CustomJS(args=dict(source=source), code=
"""
console.log("What should go in here?");
""")
myDropDownMenu.js_on_change('value', callback)
So if 'uniform' is selected in the dropdown, I expect 'uniform' to show up in my console... Any ideas?