[21.07.12] Jupyter Notebook

WonJu Lee·2021년 7월 12일
0

Jupyter Notebook

  • Interactive 한 Python code 작성 + 공유를위한 개발도구
  • Notebook : plain text (주석 = Markdown) + python code

Jupyter Notebook 설치

  • terminal에 다음 명령어를 입력해서 jupyter notebook 설치
	pip install jupyter

Jupyter Notebook 실행

  • terminal에 다음 명령어를 입력해서 jupyter notebook 실행
  • jupyter는 web applicaton => local host server에서 실행됨
	jupyter notebook

Notebook 생성하기

  • new 버튼을 통해 python3으로 새로운 notebook 생성

Notebook mode

1. 입력 모드 (초록색 테두리)

  • cell에 입력을 할 수 있는 모드

2. 명령 모드 (파란색 테두리)

  • cell사이에서 명령을 내릴 수 있는 모드, 입력 모드에서 esc키를 눌러서 전환

Cell mode

1. code cell

  • python3을 실행할 수 있는 cell
  • ' In [n] ' 로 code cell이 실행된 순서가 구분됨
  • Y키를 눌러서 변경

2. markdown cell

  • markdwon을 작성할 수 있는 cell
  • M키를 눌러서 변경

cell 추가하기

  • 명령 mode에서만 가능

1. A(above) key

  • 현재 cell 위에 새로운 cell 추가

2. B(below) key

  • 현재 cell 아래에 새로운 cell 추가

cell 삭제하기

  • 명령 mode에서만 가능
  • 'd' key를 두 번 눌러 현재 cell 삭제

Markdown

  • 일반 text로, 서식이 있는 문서를 작성하기 위해 등장한 markup language

Markdown 문법 간단 정리

1. # (* n)은 header로 인식 (n : 1~6)
2. '**text**', '__text__' 은 bold 처리
3. '__text__' (underbar) 는 italic 처리
4. '~~text~~' 는 strikethrough 처리
5. '-'는 unordered list를 표현
6. 1,2,3 ... 은 ordered list를 표현
등등...
profile
Don't make excuses

0개의 댓글