Collapse Output In VS Code Jupyter Notebook into Scrollable Window

Question:

Is there a way to show the output such as a very long data-frame in a scrollable window in VS Code Jupyter Notebook?

I am aware that pressing letter "o" allows you to collapse all output. But having the scrollable window is still preferable as it allows you to check the output while referring to other windows.

I also checked this link but couldn’t get it work.

Asked By: nilsinelabore

||

Answers:

Per the comments, a workaround to trigger the scrollable window is to add a print statement to the cell output. For example print("foo") at the beginning or end of a cell.

Answered By: Davis

There is a beta feature for scrolling now. Simply add "notebook.experimental.outputScrolling": true to settings.json.

Answered By: Janix