gpt4 book ai didi

python - 如何在 jupyter notebook 中获得大输出窗口?

转载 作者:太空宇宙 更新时间:2023-11-04 08:31:40 29 4
gpt4 key购买 nike

<分区>

当我们在 jupyter notebook 中有大量输出时,它会自动创建可滚动的输出窗口。有没有一种方法可以选择窗口的宽度和高度,以便所有输出图都显示在 jupyter notebook 中?

例如:

import matplotlib.pyplot as plt
%matplotlib inline


for i in range(10):
plt.plot(range(10))
plt.show()

创建一个这样的窗口: enter image description here

我们可以在不滚动的情况下看到所有的图吗?

我知道自动滚动 nbextension,但想在这里获得一个大的输出窗口。

此外,对于 pandas,还有像 pd.options.display.max_rows 这样的命令。如何为输出窗口执行此操作?

29 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com