From abd96948bd6422dffa8317f863cacf4e6f18a16a Mon Sep 17 00:00:00 2001 From: Marc Wouts Date: Thu, 19 Jul 2018 00:15:25 +0200 Subject: [PATCH] Do not add default config to metadata Fixes #17 --- nbrmd/contentsmanager.py | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/nbrmd/contentsmanager.py b/nbrmd/contentsmanager.py index cafd8eeff..5895be16c 100644 --- a/nbrmd/contentsmanager.py +++ b/nbrmd/contentsmanager.py @@ -106,17 +106,10 @@ def _read_notebook(self, os_path, as_version=4, as_version=as_version, load_alternative_format=False) - # We store in the metadata the alternative and sourceonly formats - trusted = self.notary.check_signature(nb) - nb.metadata['nbrmd_formats'] = nbrmd_formats - nb.metadata['nbrmd_sourceonly_format'] = source_format - if nb_outputs is not None: combine.combine_inputs_with_outputs(nb, nb_outputs) - trusted = self.notary.check_signature(nb_outputs) - - if trusted: - self.notary.sign(nb) + if self.notary.check_signature(nb_outputs): + self.notary.sign(nb) return nb