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

enable "Toggle Cell Output Scrolling" like in native jupyter notebook #12496

Closed
alexdauenhauer opened this issue Jan 6, 2023 · 7 comments
Closed
Assignees
Labels
feature-request Request for new features or functionality

Comments

@alexdauenhauer
Copy link

I think this is identical to #12122 but that one is closed and this feature does not exist to my knowledge.

in Jupyter Notebook, you can toggle cell output scrolling so that large outputs still print, but you don't have to scroll for days to get to the next cell. Instead the output window has a scroll bar and you can scroll only the output. This would be a very nice feature to have since the current option is to have long outputs appear in a new editor window and this works for normal outputs, but is horrible for errors which get truncated and then you can't really read them in the new editor.

image

@alexdauenhauer alexdauenhauer added the feature-request Request for new features or functionality label Jan 6, 2023
@amunger
Copy link
Contributor

amunger commented Jan 6, 2023

tracking this in #4406

You can enable the experimental feature by adding "notebook.experimental.outputScrolling": true to your settings.json file

@amunger amunger closed this as completed Jan 6, 2023
@alexdauenhauer
Copy link
Author

alexdauenhauer commented Jan 6, 2023

@amunger when I add that setting it is grayed out signaling to me that it is not an option that exists. How do I enable it?

image

EDIT: it also does not change the notebook cell output in any way

@amunger
Copy link
Contributor

amunger commented Jan 6, 2023

it's expected to be grayed out since it's still experimental and undocumented. You'll need to reload vs code after adding the setting and then it will only affect cells where the content is long enough to need scrolling (instead of showing the Output exceeds the size limit. Open the full output data in a text editor message).

@alexdauenhauer
Copy link
Author

ok great it is working now. Thank you for explaining to me how to work it

@miumer
Copy link

miumer commented Jan 25, 2023

Is it possible to use a keyboard shortcut to focus on the scrollable output area and smooth scroll the output using a keayboard only?

@amunger
Copy link
Contributor

amunger commented Jan 25, 2023

@miumer - please create a new issue for that feature request so it can be tracked independently

@Phlosioneer
Copy link

Phlosioneer commented Feb 1, 2023

This confused me, so I'm including a comment here: The feature setting only applies a scroll bar to print based output (stdout and stderr). It doesn't add a scrollbar for last-line based output, like putting a large array on the last line.

But it removes the line length limit for both output types!!
It also determines when to add a scroll bar by the literal number of \n characters (line breaks). If you have one long strong that word wraps to several lines, no scroll will appear.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Sep 8, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
feature-request Request for new features or functionality
Projects
None yet
Development

No branches or pull requests

4 participants