Beispiel #1
0
    def log_ipywidget(self, toolbar=False, height=200):
        l = LogView(layout=Layout(height='%ipx' % height, overflow_y='auto'),
                    value=self._log_txt())
        l.source = self
        self._log_ipywidgets.append(l)

        if not toolbar:
            return l

        t = LogToolBar(l)
        layout = VBox([t, l])
        layout.log_view = l
        layout.toolbar = t
        return layout