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

Question: how to save subsections of a table #248

Open
JeffreySarnoff opened this issue Oct 23, 2024 · 2 comments
Open

Question: how to save subsections of a table #248

JeffreySarnoff opened this issue Oct 23, 2024 · 2 comments

Comments

@JeffreySarnoff
Copy link

I have a long pretty_table, I want to write it to disk as a succession of txt files so I can provide the information on printed pages (nicely).

@ronisbr
Copy link
Owner

ronisbr commented Oct 23, 2024

Hi @JeffreySarnoff !

There is no automatic way to do this. My suggestion is to create the table for each set of rows using view (something like pretty_table(String, table[1:100, :]...), and writing the output to the correct file. In this case, it would be better to set the column widths to a fixed size so that every file has the same table format.

@JeffreySarnoff
Copy link
Author

Thanks for the suggestion.
future possible:
now: pretty_table(data; kwdargs)
then: pretty_table(data; startrow, endrow, header, other_kwdargs)

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

No branches or pull requests

2 participants