默认情况下在IPython中启用漂亮打印

时间:2013-02-19 22:20:34

标签: python ipython pretty-print

如何在IPython中默认启用漂亮打印?我无法在任何地方找到有关如何执行此操作的明确说明。 非常感谢!

1 个答案:

答案 0 :(得分:3)

$ ipython help notebook | grep pprint -A1
--pprint
    Enable auto pretty printing of results.
--
--no-pprint
    Disable auto auto pretty printing of results.


$ ipython help console | grep pprint -A1
--pprint
    Enable auto pretty printing of results.
--
--no-pprint
    Disable auto auto pretty printing of results.