본문 바로가기
Programming/Python

MAC에서 jupyter config 설정

by NAMP 2017. 12. 31.

MAC에서 jupyter config 설정

jupyter 설치

jupyter가 설치되어 있지 않다면, 설치를 진행합니다.

➜  ~ pip install jupyter
Collecting jupyter
  Downloading jupyter-1.0.0-py2.py3-none-any.whl
Collecting nbconvert (from jupyter)
  Downloading nbconvert-5.3.1-py2.py3-none-any.whl (387kB)
    100% |████████████████████████████████| 389kB 1.5MB/s
    ...
    ...
    ...

config 파일 생성

config 파일을 생성합니다.

➜  ~ jupyter notebook --generate-config
Writing default config to: /Users/[YOUR_NAME]/.jupyter/jupyter_notebook_config.py

홈 디렉토리에 .jupyter파일이 생성됩니다.

juypter 홈경로 설정

.jupyter 파일에서, notebook_dir 경로를 변경합니다.

## The directory to use for notebooks and kernels.
#c.NotebookApp.notebook_dir = ''
c.NotebookApp.notebook_dir = '~/dev/jupyter'

수정 후 저장합니다.

jupyter 실행

jupyter notebook

 

'Programming > Python' 카테고리의 다른 글

[IPython] 참고 자료  (0) 2018.01.10
[IPYTHON] 코드 프로파일링 및 시간 측정  (0) 2018.01.09
Keras, Tensorflow-gpu 설치  (0) 2017.12.25
Jupyter 외부 접속 설정  (2) 2017.12.22
[django] 장고의 설계 원칙  (0) 2017.06.30

댓글