16

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.

3
  • 1
    The update Notebooks are getting revamped! is for VSCode Insiders, we're using VS Code and now this funciton is not support in it. Commented Nov 12, 2020 at 3:17
  • 1
    A workaround for this is to add a print statement at the beginning or end of the cell output (e.g. print('foo')). This will trigger the scrollable window. Commented May 20, 2021 at 19:29
  • Hi @Davis thanks for your contribution, that's amazing! Please feel free to add as an answer :D Commented May 20, 2021 at 22:48

4 Answers 4

8

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

Sign up to request clarification or add additional context in comments.

2 Comments

Meanwhile (VSCode 1.79.0 and newer) the feature is called: "notebook.output.scrolling": true
@burn4science "notebook.output.scrolling": true does not work for me. I've had it active for months, so I'm not sure what I'm missing.
7

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.

Comments

5

Go to setting and type notebook.output.scrolling. there you can eanble scrolling enter image description here

Comments

1

Search for notebook scroll in the settings (cmd + ,) and check the box.

enter image description here

And also do this for pandas

pd.set_option("display.max_rows", None, "display.max_columns", None)

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.