I am trying to create a tool using Holoviz/PyViz packages (Holoviews, Param, Panel, Xarray). I have created two panels which each take in a dataset, with widgets to select parameters, and produces a plot. I would like the main plot to be the default of the tool when it's opened, with a button that when pressed adds the second panel and plot. I can do this already, but I would like to create a 'Clear' button which removes the second panel and plot, or alternatively just a 'Tool reset' button that will reset to the default. I haven't seen anything like this in the PyViz examples so far. Is there a way to do this?
question from:
https://stackoverflow.com/questions/65921905/is-there-a-way-to-add-remove-a-panel-using-a-button-in-holoviz 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…