How to tell `ipywidgets.interactive`, that it should consider only specific parameters as widgets?
问题 It seems like ipywidgets.interactive tries to make every imput after the function to be a widget. In the following example, I get two widgets, one for age and one for name : import ipywidgets def greetings(age, name='John'): print(f'{name} is {age} years old') ipywidgets.interactive(greetings, age = widgets.IntSlider(), name = "Bob") My expectation was, that I only get one widget for age , since it is of type ipywidgets.widgets.widget_int.IntSlider whereas "Bob" is of type str (where I don't