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

Set output height limit and scrolling for non-text stream outputs #190426

Open
amunger opened this issue Aug 14, 2023 · 3 comments
Open

Set output height limit and scrolling for non-text stream outputs #190426

amunger opened this issue Aug 14, 2023 · 3 comments
Assignees
Labels
feature-request Request for new features or functionality notebook-output

Comments

@amunger
Copy link
Contributor

amunger commented Aug 14, 2023

Sometimes the output from a code cell will be very large, which makes it impractical to display the entire output. According to this answer, I tried changing the setting "Notebook>Output: Text Line Limit" ("notebook.output.textLineLimit": 5). However, this seems to only limit the cell size of a pure text based output, and not outputs such as matrices, dataframes or other spreadsheet-like outputs (e.g. from the `View() function in R.)

(NOTE: The cell code is written in R, although I wouldn't presume this to be relevant for this particular issue.)

Example setting:
GUI

enter image description here

(Alternatively) settings.json:
"notebook.output.scrolling": true
"notebook.output.textLineLimit": 5
Example outputs:
Text output

Here the cell is limited to 5 lines, with a vertical scroll bar, as defined in the settings:
enter image description here

..but not for matrices, dataframes and spreadsheet-like objects.

Dataframe

enter image description here

Output from View()

enter image description here

My question therefore is:

Is it possible to limit cell height for other outputs than text?

Originally posted by @pehkawn in microsoft/vscode-jupyter#14113

@amunger amunger self-assigned this Aug 14, 2023
@amunger amunger transferred this issue from microsoft/vscode-jupyter Aug 14, 2023
@amunger amunger added feature-request Request for new features or functionality notebook-output labels Aug 14, 2023
@davies-w
Copy link

davies-w commented Apr 27, 2024

Hi, as this hasn't closed yet, I'd like to alert you to the opposite problem - I want to make my Output Window really big - but without having the "inside scroll bar" appearing. Is this a related problem with this variable? In my head, if I set this variable to say 30,000, it should almost never create a second scroll bar, and should just have you scroll down with the primary Notebook Scroll Bar, especially when you use a Mouse with a scroll wheel.

I can do this just fine in Google Colab with some javascript, but here, it seems not. Having Double Scroll Bars is just horrible (imo)

@ibobak
Copy link

ibobak commented May 2, 2024

It is May 2024 now. isn't this problem still fixed? I am also suffering from this.

@yitian-reevo
Copy link

Me too, any progress?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature-request Request for new features or functionality notebook-output
Projects
None yet
Development

No branches or pull requests

4 participants