Skip to content
This repository was archived by the owner on Feb 21, 2026. It is now read-only.
This repository was archived by the owner on Feb 21, 2026. It is now read-only.

sb.read_notebooks().metrics dataframe shows wrong key, etc... #93

Description

@profPlum

Hi I cannot for the life of me figure out how to just get a dataframe that shows for each notebook the metrics recorded.
In particular when I call sb.read_notebooks().metrics the "key" column just repeats the notebook name:

Image

Also on a related note using book.scraps_report() doesn't seem to work either:
(just gives the notebook name(s) and nothing else)

Image

Also Also book.papermill_dataframe doesn't work either:
Image

...Indeed very little of the api for aggregating scraps seems to work at all? What's going on?

P.S. I glued a few complicated objects like a dict containing lists and a regular list in addition the regular "metrics" (aka scalars). But I should expect this library can handle that and simply ignores the complicated objects when creating summaries (if it cannot handle them, which BTW I'm pretty sure pandas actually can...)

P.P.S. these tests were done on only two notebooks for simplicity.
Also pandas==2.3.3, scrapbook==0.5.0 and papermill==2.6.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions