gpt4 book ai didi

python - iPython 终端中的屏幕宽度太小

转载 作者:行者123 更新时间:2023-12-01 04:31:43 24 4
gpt4 key购买 nike

如果列表太长,我的 iPython 会将列表显示为一高列。我希望它能够充分利用终端的屏幕宽度。我知道这不是终端问题,因为终端输出将使用全屏。我已经尝试编辑 '.ipython/profile_default/static/custom/custom.css' 以获得 '.container { width:100% !important; }' 没有运气。

最佳答案

如果我理解正确的话,你想要这样的输出

[1,2,3,4]

而不是

[1,
2,
3,
4]

如果是这样:使用 --no-pprint 标志启动 ipython 或使用 %pprint (请参阅 here )。

关于python - iPython 终端中的屏幕宽度太小,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/32302446/

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