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

Dataframes render with excessive whitespace, and lose a majority of info #238913

Open
Yoyokrazy opened this issue Jan 28, 2025 · 1 comment
Open
Assignees
Labels
notebook-execution Issues related to running cells in a notebook notebook-variables under-discussion Issue is under discussion for relevance, priority, approach

Comments

@Yoyokrazy
Copy link
Contributor

Re: #237263

Currently after converting to a dataframe, variables are rendered with an excessive amount of whitespace, causing a lot of the information about them to be lost until hover. This is visible in both the notebook variables view and the cell execution inline values.

Perhaps there can be a generic approach to recognizing dataframes, and parsing them into a more readable single line format that can be shared between the two features.

Image

@Yoyokrazy Yoyokrazy added notebook-execution Issues related to running cells in a notebook notebook-variables under-discussion Issue is under discussion for relevance, priority, approach labels Jan 28, 2025
@amunger
Copy link
Contributor

amunger commented Jan 28, 2025

The change could probably be tagged on where we already change the formatting options through pandas here: https://insiders.vscode.dev/github/microsoft/vscode-jupyter/blob/main/pythonFiles/vscode_datascience_helpers/getVariableInfo/vscodeGetVariablesForProvider.py#L454

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
notebook-execution Issues related to running cells in a notebook notebook-variables under-discussion Issue is under discussion for relevance, priority, approach
Projects
None yet
Development

No branches or pull requests

2 participants