def _clear_input_canvas(self):
        layout = self._ui.input_canvas.layout()
        for a in self._argument_widgets:
            layout.removeWidget(a)
            a.close()

        if not is_pyside():
            # PySide crashing here
            layout.removeItem(self.spacer)

        self._argument_widgets = []
Remove all widgets from the input canvas
dataset/ETHPy150Open glue-viz/glue/glue/dialogs/link_editor/qt/link_equation.py/LinkEquation._clear_input_canvas