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

display() nicely in IPython #648

Open
tjlaboss opened this issue Jan 29, 2025 · 2 comments
Open

display() nicely in IPython #648

tjlaboss opened this issue Jan 29, 2025 · 2 comments
Labels
feature request An issue that improves the user interface. low priority

Comments

@tjlaboss
Copy link
Collaborator

Is your feature request related to a problem? Please describe.

The IPython API provides a rich set of display() tools; see display_functions(). This allows for some very pretty printing in Jupyter notebooks used for workshops, for example.

Describe the solution you'd like

Implement _repr_html_ (or another method) for the most common user-facing objects: Cell, Surface, and Material. It would be nice to view the material components as a table, for instance.

Additional context
Add any other context or screenshots about the feature request here.

Integrating your objects with IPython

@tjlaboss tjlaboss added feature request An issue that improves the user interface. low priority labels Jan 29, 2025
@MicahGale
Copy link
Collaborator

Oh also while at it: probably implement a __format__ to accept format specs.

@MicahGale
Copy link
Collaborator

The markdown, progress bar objects seem interesting.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature request An issue that improves the user interface. low priority
Projects
None yet
Development

No branches or pull requests

2 participants