Skip to content

[Feature]: Reduce the size of large html reprs #1260

Open
@rly

Description

@rly

What would you like to see added to HDMF?

When printing some NWB files in a notebook, the HTML representation is ginormous, e.g., https://github.com/dandi-ai-notebooks/000673/blob/main/2025-04-16-gpt-4o-prompt-b-4/000673.ipynb

What solution would you like?

With @bendichter @magland @oruebel, we discussed:

  1. After printing 5 objects of the same type in a group, do not show the full repr of the rest. Instead, print "and X more objects of data type Y with names [Z1, Z2, ...]"
  2. When printing the first few rows of a DynamicTable, do not print entire arrays in the cells if they are large. Or if that is not feasible, do not print the table at all.

This will make saved notebooks smaller in size for storing in Git and passing to an LLM.

Do you have any interest in helping implement the feature?

Yes.

Metadata

Metadata

Assignees

Labels

category: enhancementimprovements of code or code behaviorpriority: mediumnon-critical problem and/or affecting only a small set of users

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions