2013-02-19 3 views
5

IPython에서 기본적으로 예쁜 인쇄를 사용하려면 어떻게해야합니까? 나는 이것을하는 방법에 대한 명확한 지침을 어디에도 찾을 수 없었습니다. 감사합니다.IPython에서 기본적으로 예쁜 인쇄 사용

+0

우분투에서는 기본적으로 사용하도록 설정되어 있습니다. 뭐라구? –

+1

[포럼 스레드] (http://grokbase.com/t/scipy.org/ipython-user/12b9kbt2kv/pretty-print-as-default-print-function)와 동일한 문제가있었습니다. 나는 그것을 조사 할 것이다! – xxmbabanexx

+1

IPython의'Out [123] :'줄은'print (repr (_)) '대신에'pprint.pprint (_)'와 같은 일을하기를 원하나요, 아니면 모든 호출을 'print'를 대신'pprint.pprint'에 넣으시겠습니까? – abarnert

답변

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.