VS Code Jupyter py 3.11.5 输出不截断但滚动

问题描述 投票:0回答:1

enter image description here

Dataframe temp 有 157 列。 我想查看它们的类型,但输出被截断。

如何通过可滚动输出查看此输出或在文本编辑器视图中打开?

print() 或 display() 不起作用,pd.set_option('display.max_colwidth', None) 或 pd.set_option('display.max_info_columns', None) 也不起作用。

另外,我的设置如下。 enter image description here

python visual-studio-code output jupyter
1个回答
0
投票

您的输出有 157 行,并且您已将最大行数设置为 100。

您可以在设置中搜索Text Line Limit然后将值更改为200。

这与将

"notebook.output.textLineLimit": 1000,
添加到您的
settings.json
相同。

© www.soinside.com 2019 - 2024. All rights reserved.