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

Wrap list and dictionary output #2977

Open
wasimsandhu opened this issue Nov 26, 2024 · 4 comments · May be fixed by #2995
Open

Wrap list and dictionary output #2977

wasimsandhu opened this issue Nov 26, 2024 · 4 comments · May be fixed by #2995
Assignees
Labels
enhancement New feature or request

Comments

@wasimsandhu
Copy link
Collaborator

wasimsandhu commented Nov 26, 2024

Description

The values for my dictionary keys are really long and it's awkward to scroll a string horizontally to read it.

Suggested solution

Can cell outputs for lists and dictionaries be wrapped by default?

Alternative

A toggle in the cell output (or context menu) to wrap cell output.

Additional context

No response

@wasimsandhu wasimsandhu added the enhancement New feature or request label Nov 26, 2024
@mscolnick
Copy link
Contributor

Without viewing long lists all that much, i feel like not wrapping as the default seems better. It is more often you are aren't look at all the values and i think it would clutter up the output area in every case, instead of just when you want to read it. Open to change my mind if you can share some examples.

@wasimsandhu
Copy link
Collaborator Author

I agree that it would make scanning all key-values harder if wrapped by default. A toggle in the right hand corner would be better then.

I can't share my actual data, but I am dealing with tables with 100+ columns, and each column has lots of text. This is what it looks like when I try to view a selected row as a dict:

Image

It would be really helpful if it was wrapped, similar to what viewing a large JSON document in a web page looks like.

@mscolnick
Copy link
Contributor

Yea, this can be hard to parse, maybe we can support different views. You can check out https://jsonhero.io/ for some inspiration

@wasimsandhu
Copy link
Collaborator Author

I was thinking a "Wrap text" toggle on the right hand corner would suffice for my use case. Can open a PR later this week if so, otherwise we can scope it out some more

@wasimsandhu wasimsandhu self-assigned this Nov 28, 2024
@wasimsandhu wasimsandhu linked a pull request Nov 28, 2024 that will close this issue
4 tasks
@wasimsandhu wasimsandhu linked a pull request Nov 28, 2024 that will close this issue
4 tasks
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
None yet
Development

Successfully merging a pull request may close this issue.

2 participants