Convert IPython 2.0 to html from the 'file' menu

I try to convert my laptop to html from the file menu (a nice feature added in 2.0), but when I do this, I get a 500: Internal Server Error screen with the text:

nbconvert failed: Pandoc wasn't found. Please check that pandoc is installed: http://johnmacfarlane.net/pandoc/installing.html 

I installed Pandoc from the link using the Windows installer, but still getting the same error. Any suggestions to fix this? Where do I need to install the Pandoc or pandoc.exe folder that I just downloaded to make this work?

+1
source share
3 answers
  • In the Windows Start menu, in the search box, enter "Edit System Environment Variables"
  • select the Environment Variables option that should open the System Properties dialog box, which you can use to modify the Path system environment variable.
  • Add the pandoc.exe path to the Path system variable using the environment variable editor, as described here . For my Windows 7 environment, I added "; C: \ Users \ IBM_ADMIN \ AppData \ Local \ Pandoc" to the end of the already defined Path System Variable, which you should select from the lower System Variables dialog box, and then click Change ... , in order to change. Add the path to pandoc.exe and click OK.
  • Reboot the ipython laptop session in the newly opened Windows command window so that you can change the system environment variable. To confirm that your change in the Path system environment variable is correct, enter "set" at a prompt in a recently opened command shell and check the value for the env var path.
+4
source

After installing pandoc from here, make sure you restart jupyter and the instance of the terminal it is running on to update the path. (Aka part 4 of user's response3638179).

0
source

In my case, the laptop server complained about the missing pygments.formatters module: "There is no module named pygments.formatters"

Running "py install pygments" fixed the problem for me.

I am using IPython version 2.1.0.

-1
source

Source: https://habr.com/ru/post/1216324/


All Articles