def history_present(self, history):
        """
        Present a history popover.
        :param history: history to present
        :type history: ShHistory
        """
        listsource = ui.ListDataSource(history.getlist())
        listsource.action = self.history_popover_tapped
        table = ui.TableView()
        listsource.font = self.BUTTON_FONT
        table.data_source = listsource
        table.delegate = listsource
        table.width = 300
        table.height = 300
        table.row_height = self.BUTTON_FONT[1] + 4
        table.present('popover')
        table.wait_modal()

        Present a history popover.
        :param history: history to present
        :type history: ShHistory
        
system/shui/pythonista_ui.py