Python

주피터 노트북(jupyter notebook) pdf 변환

인생마린 2021. 3. 4. 20:58
반응형

nbconvert failed: Pandoc wasn't found.
Please check that pandoc is installed:
https://pandoc.org/installing.html

jupyter notebook에서 download as pdf via LaTex를 고르면 에러난당

해결책은 간단하다.. 깔라는거 깔면됨(아니 pdf변환하는데 머 이리 까는게 많아?! =ㅅ=)

뭔가 많이 까는거 싫어하면 맨 아래 우회방법 적어둠..

 

Installation — nbconvert 6.0.8.dev0 documentation

The Miniconda and Miniforge distributions both provide a minimal conda installation. Important To unlock its full capabilities, nbconvert requires Pandoc, TeX (specifically, XeLaTeX) and Pyppeteer. These must be installed separately.

nbconvert.readthedocs.io

pip install nbconvert, pandoc

밑에 두개도 다운로드 받자(윈도우만 해당, 다른os는 위에 링크 보고 따라하길)

 

Pandoc - Installing pandoc

Installing pandoc The simplest way to get the latest pandoc release is to use the installer. Download the latest installer For alternative ways to install pandoc, see below under the heading for your operating system. Windows There is a package installer a

pandoc.org

 

 

Getting MiKTeX

a. Register GPG key sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys D6BC243565B2087BC3F897C9277A7293F59E4889 b. Register installation source Ubuntu 20.04 LTS (Focal Fossa): echo "deb http://miktex.org/download/ubuntu focal universe"

miktex.org

 

이후 이런식으로 여러번 필요한 패키지 설치하라고 뜰것이다... 귀찮다잉

쉽게 변환하는 방법

특별한건 아니고 html로 변환후 인쇄->pdf로 만드는 방법이다

반응형