Jupyter Lab 最大输出数量已调整

Mat*_*bek 5 jupyter jupyter-lab

如何更改 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.
Run Code Online (Sandbox Code Playgroud)

maxNumberOutputsJupyter Lab源代码中有参数,但我没有找到任何更改它的方法。

kra*_*ski 11

您可以maxNumberOutputs在设置中更改:单击菜单栏 \xe2\x86\x92 Settings\xe2\x86\ Advanced Settings Editorx92 \xe2\x86\x92 Notebook\xe2\x86\x92maxNumberOutputsUser Preferences选项卡中设置,例如:

\n
{\n    "maxNumberOutputs": 100\n}\n
Run Code Online (Sandbox Code Playgroud)\n

保存并重新加载。

\n

  • 有没有办法直接从笔记本更改单个单元的此设置? (3认同)