본문 바로가기

ComputerScience/기타

export .ipynb to PDF (at Colab)

728x90

1. pypandoc 설치

!apt-get install texlive texlive-xetex texlive-latex-extra pandoc
!pip install pypandoc

2. 구글 드라이브 mount

from google.colab import drive
drive.mount('/content/drive')

3. convert

!jupyter nbconvert --to PDF '/content/drive/My Drive/ipynbToPDF.ipynb'

 

728x90
반응형