diff --git a/bionetgen/core/notebook.py b/bionetgen/core/notebook.py index 49289b36..c3716a81 100644 --- a/bionetgen/core/notebook.py +++ b/bionetgen/core/notebook.py @@ -37,8 +37,8 @@ def write(self, outfile): with open(self.template, "r") as f: content = f.read() - for key in self.odict: - content = content.replace(key, self.odict[key]) + for key, val in self.odict.items(): + content = content.replace(key, val) with open(outfile, "w") as f: f.write(content)