좋은 형태로 출력된다. 위 예제를 표준 파이썬 인터프리터에서 보면 다소 읽기 불편한 형태로
출력된다.
>>>
from numpy
.
random import randn
>>>
data
=
{
i
:
randn
()
for i in range
(
7
)}
>>>
print
(
data
)
{
0
:
-
1
.
5948255432744511
,
1
:
0
.
10569006472787983
,
2
:
1
.
972367135977295
,
3
:
0
.
15455217573074576
,
4
:
-
0
.
24058577449429575
,
5
:
-
1
.
2904897053651216
,
6
:
0
.
3308507317325902
}
또한
IPython
은 일부 코드(약간 개선된 복사/붙여넣기 기능을 통해) 아니면 전체 파이썬 스
크립트를 쉽게 실행할 수 있는 기능을 제공한다. 또한 주피터 노트북을 이용해서 많은 분량의
코드를 다룰 수 있는데 나중에 더 살펴보기로 하자.
2.2.2
주피터 노트북 ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month, and much more.