Matt
Matt

Reputation: 7254

How to display all output in Jupyter Notebook within Visual Studio Code?

Within Jupyter Notebook in VS Code when I run code that prints a lot of output at some point the remaining output is suppressed and a message is displayed

"show more (open the raw output data in a text editor) ..."

How can I make all the output visible?

enter image description here

Upvotes: 47

Views: 114053

Answers (4)

user6347318
user6347318

Reputation: 21

In the latest version of VS Code, the above-mentioned options can be found under Features->Notebook->Output: Text Line Limit

Upvotes: 2

Raushan Kumar
Raushan Kumar

Reputation: 181

You need to change it from the settings. This is set lower value (30 in my case). To see all lines, you need to change the "number of lines to show" value. Follow these steps to do so.

Open VS code settings or (ctrl + ,) >> In search box type "output.textLineLimit" >> Find "Notebook>Output: Text Line Limit" >> Change the value as per your requirement (say 500 to show 500 lines)

Upvotes: 11

Atmani Saad
Atmani Saad

Reputation: 899

I think you are using the insiders build here is the right setting ,I had the same problem and it worked for me.

"notebook.output.textLineLimit": 500

edit: this will also work for the stable version

Upvotes: 79

Steven-MSFT
Steven-MSFT

Reputation: 8411

set

"jupyter.textOutputLimit": 0

in the settings.json.

The default value of it is 20000.

Upvotes: -3

Related Questions