简体   繁体   中英

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?

在此处输入图像描述

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)

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

The default value of jupyter.maxOutputSize is 400 , you may change it in Settings.json:

"jupyter.maxOutputSize": 1000

Please try this and see if it solves your question.

set

"jupyter.textOutputLimit": 0

in the settings.json.

The default value of it is 20000 .

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM