简体   繁体   English

如何在 Visual Studio Code 中的 Jupyter Notebook 中显示所有 output?

[英]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在 VS Code 中的 Jupyter Notebook 中,当我运行的代码在某个时候打印出大量 output 时,剩余的 output 被抑制并显示一条消息

"show more (open the raw output data in a text editor)..." “显示更多(在文本编辑器中打开原始 output 数据)...”

How can I make all the output visible?如何使所有 output 可见?

在此处输入图像描述

You need to change it from the settings.您需要从设置中更改它。 This is set lower value (30 in my case).这是设置较低的值(在我的例子中是 30)。 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)打开 VS 代码设置或 (ctrl +,) >> 在搜索框中键入“output.textLineLimit” >> 查找“Notebook>Output: Text Line Limit” >> 根据您的要求更改值(比如 500 显示 500 行)

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的默认值为400 ,您可以在 Settings.json 中更改它:

"jupyter.maxOutputSize": 1000

Please try this and see if it solves your question.请试试这个,看看它是否能解决你的问题。

set

"jupyter.textOutputLimit": 0

in the settings.json.在设置中。json。

The default value of it is 20000 .它的默认值为20000

In the latest version of VS Code, the above-mentioned options can be found under Features->Notebook->Output: Text Line Limit在最新版本的 VS Code 中,上述选项可以在 Features->Notebook->Output: Text Line Limit 下找到

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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