Closed tqa236 closed 6 months ago
Looks like we don't have that method defined on the Scrapbook collection. You could emulate the scraps behavior with merge_dicts(nb.parameters for nb in sb.notebooks)
or OrderedDict([(key, nb.parameters ) for key, nb in sb._notebooks.items()])
.
Would be an easy feature to add if you wanted to :)
Thank you very much. I'm able to do that now. This code can access the scraps and the parameters at the same time:
for scraps, nb in zip(book.notebook_scraps, book.notebooks):
print(scraps)
print(nb.parameters)
Hello, I just use papermill and scrapbook recently and they are fantastic. I have a small issue now and I'm sorry if it's a little naive.
When I load a single notebook with scrapbook, I can access the parameters I use for papermill
However, when I load all the notebooks from a directory, I can not find where is the parameters for each notebook. book = sb.read_notebooks('result/')
Can I know how to access the parameters of each notebook in the latter case?