Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can't convert ipython notebook using Anaconda on Windows

I have been running Anaconda for a few days. I can run a notebook by doing ipython notebook in command prompt. I'm now trying to convert a note book to latex or pdf by doing ipython nbconvert --to latex mynotebook.ipynb but I get the error `

PandocMissing: Pandoc wasn't found.

along with many error messages. I have MikTex installed. I see pandoc.py in the folder C:\Users\Me\Anaconda\Lib\site-packages\IPython\nbconvert\utils. What can the problem be?

like image 950
theQman Avatar asked Mar 27 '15 21:03

theQman


2 Answers

pandoc is not a python package. IPython\nbconvert\utils\pandoc.py is not pandoc itself, but merely a helper module.

For conda users, there is a pandoc package available at conda-forge.

conda install -c conda-forge pandoc

Alternatively, you can download the latest release from the pandoc's github repository.

like image 60
cel Avatar answered Sep 20 '22 07:09

cel


Once you have Pandoc installed you will have to add the directory that contains it to your PATH variable.

See this answer for details on how to do that.

like image 33
Tony Williams Avatar answered Sep 22 '22 07:09

Tony Williams