How to use the scrapbook.utils.deprecated function in scrapbook

To help you get started, we’ve selected a few scrapbook examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github nteract / scrapbook / scrapbook / models.py View on Github external
    @deprecated('1.0.0')
    def papermill_record_dataframe(self):
        """pandas dataframe: dataframe of cell scraps"""
        # Meant for backwards compatibility to papermill's dataframe method
        return pd.DataFrame(
            [
                [name, self.scraps[name].data, "record", self.filename]
                for name in sorted(self.scraps.keys())
                if self.scraps[name].data is not None
            ],
            columns=["name", "value", "type", "filename"],
        )
github nteract / scrapbook / scrapbook / models.py View on Github external
    @deprecated('0.4.0', '`metrics`')
    def papermill_metrics(self):
        return self.metrics
github nteract / scrapbook / scrapbook / models.py View on Github external
    @deprecated('0.4.0', 'metrics')
    def papermill_metrics(self):
        return self.metrics
github nteract / scrapbook / scrapbook / models.py View on Github external
    @deprecated('1.0.0')
    def papermill_dataframe(self):
        """pandas dataframe: dataframe of notebook parameters and cell scraps"""
        # Meant for backwards compatibility to papermill's dataframe method
        return self.parameter_dataframe.append(
            self.papermill_record_dataframe, ignore_index=True
        )