def insert(self, id, widget):
        if not self.loaded:
            self.toInsert.append(PendingAttachOrInsert(id, widget))
        else:
            element = self.getElementById(id)
            if element:
                self.adopt(widget, element)
                self.children.append(widget)
            else:
                console.error("Page error: No such element " + id)
            return widget
Insert a widget into the element with the given id, at the end
dataset/ETHPy150Open anandology/pyjamas/addons/TemplatePanel.py/TemplatePanel.insert