Clearing decorator ipywidgets
I have a function which plots a graph with a couple ipywidgets as inputs: from IPython.display import clear_output def on_clicker(button): clear_output() @widgets.interact(dropdown=widgets.Dropdown(…), datepicker=widgets.DatePicker(…) def grapher(dropdown, datepicker): global recalculate … some graphing stuff display(recalculate) recalculate.on_click(on_clicker) The idea is that clicking recalculate calls the graph again and clears the past output. However, when I try this the… Read More Clearing decorator ipywidgets