Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add recursive nesting to HTML option table rendering #1586

Merged
merged 4 commits into from
Apr 5, 2024

Conversation

ihincks
Copy link
Collaborator

@ihincks ihincks commented Apr 5, 2024

Summary

This PR modifies the existing _repr_html_ method on the options base class to support recursive nesting.
Previously, it would stop expanding sub options past the first level.

Details and comments

Previously, I would get this for the estimator V2 options:

image

With this PR I get:

image

Sampler V2 demo:

image

V1 demo:

image

@ihincks ihincks changed the title Add recursive nestig to HTML option table rendering Add recursive nesting to HTML option table rendering Apr 5, 2024
Copy link
Member

@kt474 kt474 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@coveralls
Copy link

Pull Request Test Coverage Report for Build 8574835453

Details

  • 4 of 29 (13.79%) changed or added relevant lines in 1 file are covered.
  • No unchanged relevant lines lost coverage.
  • Overall first build on html-table-recursive at 83.445%

Changes Missing Coverage Covered Lines Changed/Added Lines %
qiskit_ibm_runtime/options/options.py 4 29 13.79%
Totals Coverage Status
Change from base Build 8573367248: 83.4%
Covered Lines: 6215
Relevant Lines: 7448

💛 - Coveralls

@kt474 kt474 merged commit 84e2e19 into Qiskit:main Apr 5, 2024
20 checks passed
@ihincks ihincks deleted the html-table-recursive branch April 5, 2024 20:28
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.

3 participants