Julian A.
Julian A.

Reputation: 11460

Enable pretty printing by default in IPython

How do I enable pretty printing by default in IPython? I haven't been able to find clear instructions anywhere on how to do this. Thanks much!

Upvotes: 8

Views: 9906

Answers (1)

David
David

Reputation: 18281

$ 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.

Upvotes: 5

Related Questions