def add_column(self, func, name=None, show=True):
        assert func
        name = name or func.__name__
        if name == '<lambda>':
            raise ValueError("Please provide a valid name for " + name)
        d = {'func': func,
             'show': show,
             }
        self._columns[name] = d

        # Update the headers in the widget.
        data = _create_json_dict(cols=self.column_names,
                                 )
        self.eval_js('table.setHeaders({});'.format(data))

        return func
Return an object for a binary serialized version.
dataset/ETHPy150Open kwikteam/phy/phy/gui/widgets.py/Table.add_column--crossover with--dataset/ETHPy150Open google/simian/src/simian/mac/common/util.py/Deserialize