Skip to content

Make HTML reprs for Components recursive#2926

Open
kosack wants to merge 4 commits into
mainfrom
recursive_html_repr
Open

Make HTML reprs for Components recursive#2926
kosack wants to merge 4 commits into
mainfrom
recursive_html_repr

Conversation

@kosack
Copy link
Copy Markdown
Member

@kosack kosack commented Jan 26, 2026

Minor cosmetic change that I found useful when debugging complex Components that contain other components: recurse into any sub-components in the repr. That makes it very clear what other sub-configurations are used, without having to look at component.get_current_config()

Also removed the custom repr for QualityQuery, which made is hard to see it's parameters. To get the same effect, one can still do query.to_table() in a notebook.

Before:

image

After:

image

@kosack kosack marked this pull request as ready for review January 26, 2026 17:33
Comment thread docs/changes/2926.feature.rst
Comment thread src/ctapipe/core/component.py
@kosack kosack force-pushed the recursive_html_repr branch from 1199fe0 to a77daa2 Compare January 28, 2026 10:59
@ctao-sonarqube
Copy link
Copy Markdown

@maxnoe maxnoe requested a review from mexanick April 16, 2026 16:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants