- nbconvert 설치

Installation - https://nbconvert.readthedocs.io/en/latest/install.html

pip install nbconvert

# OR

conda install nbconvert

- Using as a command line tool

Using as a command line tool - https://nbconvert.readthedocs.io/en/latest/usage.html

$ jupyter nbconvert --to FORMAT notebook.ipynb

FORMAT

  • HTML
  • LaTeX
  • PDF
  • WebPDF
  • Reveal.js HTML slideshow
  • Markdown
  • Ascii
  • reStructuredText
  • executable script
  • notebook

Markdown 외에 pdf, webpdf 등은 추가적인 확장 설치가 필요할 수 있다
참고 링크 - [nbconvert Installation]

- *.ipynb -> *.md

# 변환할 파일의 위치에서 실행
jupyter nbconvert --to markdown notebook.ipynb

댓글남기기