Jupyter Lab 输出修整的最大数量

Jupyter Lab Max Number of Outputs Trimmed

如何更改 Jupyter Lab 默认行为以减少更多输出。 输出中间的消息说:

Output of this cell has been trimmed on the initial display. 
Displaying the first 50 top and last bottom outputs. 
Click on this message to get the complete output.

Jupyter Lab source code 中有 maxNumberOutputs 参数,但我没有找到任何更改它的方法。

您可以在设置中更改maxNumberOutputs:点击菜单栏→SettingsAdvanced Settings EditorNotebook→在[=16]中设置maxNumberOutputs =] 选项卡,例如:

{
    "maxNumberOutputs": 100
}

保存并重新加载。