ipython, jupyter, anaconda 설치 :: 행복한 프로그래머

posted by 쁘로그램어 2019. 10. 13. 15:23

ipython

- ipython은 파이썬을 기본 대화형 쉘의 기능을 향상시킨 도구 (쉡게 python+shell)

- 입출력 부분을 웹서버로 떼어내어 개발한 notebook이 있음

- notebook은 콘솔 버전의 대화형 쉘이 가질수 있는 한계를 넘어 여러개의 코드 편집 셀 관리 가능


jupyter (2014년)

- Ipython Notebook 보다 더 발전된 Interactive IDE

- Jupyter는 본래 iPython이었지만 하나의 서버에서 다수의 커널을 지원하게 되면서 이름이 변경


jupyterlab (2018년)

- Jupyter Notebook 을 좀 더 개선한 버전

- Jupyter lab은 Jupyter프로젝트의 차세대 웹기반 사용자 인터페이스


anaconda

- Anaconda를 사용하면 데이터 분석 작업(Numpy, Pandas)에 자주 사용하는 패키지를 간단하게 설치 가능

  (conda는 패키지 및 환경 관리자)

- Anaconda는 세계에서 가장 유명한 파이썬(Python) 데이터 과학 플랫폼 배포판

- pyenv처럼 독립된 실행환경(가상환경)을 구축 가능


################################################

# ipython

################################################

# ipython 설치

$ apt install python-pip3

$ pip3 --version

$ pip3 install --upgrade pip

$ pip3 install jsonschema

$ pip3 install ipython[all]


# ipython 실행

$ ipython

$ run test.py


################################################

# jupyter

################################################

# jupyter 설치 및 설정

$ pip3 install jupyter[notebook]

$ jupyter notebook --generate-config

jupyter_notebook_config.py 파일밑에 추가

c.NotebookApp.ip = '*'

c.NotebookApp.port_retries = 50

c.NotebookApp.port_retries = 8888


# jupyter 실행

$ jupyter notebook --allow-root & 


# jupyter 접속

http://{IP}:8888


################################################

# jupyterlab

################################################

# jupyterlab 설치 및 설정

$ pip3 install jupyterlab

$ jupyter lab --generate-config

jupyter_notebook_config.py 파일밑에 추가

c.NotebookApp.ip = '*'

c.NotebookApp.port_retries = 50

c.NotebookApp.port_retries = 8888


# jupyterlab  실행

$ jupyter lab --allow-root & 


# jupyterlab 접속

http://{IP}:8888


참고로 jupyterlab URL에서 /TREE만 붙여주면 기존의 주피터 노트북 사용가능

http://{IP}:8888/tree


################################################

# anaconda

################################################

# anaconda 설치

$ wget https://repo.continuum.io/archive/Anaconda3-5.2.0-Linux-x86.sh

$ bash Anaconda3-5.2.0-Linux-x86.sh



# 참고 (ipython, jupyter)

https://soooprmx.tistory.com/entry/iPython-%EC%84%A4%EC%B9%98%ED%95%98%EB%8A%94-%EB%B0%A9%EB%B2%95

https://webisfree.com/2018-08-04/python-pip-%EC%97%90%EB%9F%AC-cannot-import-name-main-%ED%95%B4%EA%B2%B0%ED%95%98%EA%B8%B0

https://goodtogreate.tistory.com/entry/IPython-Notebook-%EC%84%A4%EC%B9%98%EB%B0%A9%EB%B2%95

https://team-platform.tistory.com/28

https://evols-atirev.tistory.com/32

https://arclab.tistory.com/135

https://jm4488.tistory.com/46

https://tariat.tistory.com/537


# 참고 (anaconda)

https://hiseon.me/python/ubuntu-anaconda-install/

http://hansworld.co.kr/AII/1038

https://antilibrary.org/1746

https://greedywyatt.tistory.com/107

'Python' 카테고리의 다른 글

스파이더(Spyder)란?  (0) 2019.10.13
윈도우 아나콘다 설치  (0) 2019.10.13
Ubuntu 16.04에 Anaconda 설치  (0) 2019.10.13