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

Tabular string and HTML representations #150 #151

Merged
merged 8 commits into from
Sep 11, 2023
Merged

Conversation

jacanchaplais
Copy link
Owner

Added tabular string and HTML representations for ParticleSet and Graphicle instances.

Behaviour emulates that of pandas DataFrames.

If in IPython or standard Python repl terminal, need to use print(). If in Jupyter, print() will output a plain string version, whereas just evaluating an object as an expression will yield an HTML version of the table.

Like pandas, the default maximum number of rows before truncation is 60. Future releases may give users the ability to change this maximum. Columns are never truncated. Again, if a sensible default may be worked out for column truncation in future releases.

@jacanchaplais jacanchaplais added the enhancement New feature or request label Sep 11, 2023
@jacanchaplais jacanchaplais added this to the 0.3.3 milestone Sep 11, 2023
@jacanchaplais jacanchaplais self-assigned this Sep 11, 2023
@jacanchaplais jacanchaplais merged commit 0b1fb00 into main Sep 11, 2023
9 checks passed
@jacanchaplais jacanchaplais deleted the feature/tabular-150 branch September 11, 2023 15:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

1 participant