Convert IPython 2.0 notebook to html from the 'file' menu

前端 未结 3 1232
借酒劲吻你
借酒劲吻你 2021-01-16 12:30

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

相关标签:
3条回答
  • 2021-01-16 12:46
    1. From the Windows Start Menu, in the search box type "Edit the system environment variables"
    2. select the "Environment Variables" option, that should open a System Properties dialog box that you can use to Edit the Path system environment variable.
    3. Add the path of pandoc.exe to the Path system variable using the environment variable editor as detailed in 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 be able to select from the lower "System variables" dialog and then click Edit... to modify. Append the path to pandoc.exe, then click OK.
    4. Restart your ipython notebook session in a newly opened Windows command prompt so you will pick up the system environment variable change. To confirm that your change to the Path system environment variable is correct, type "set" at the prompt in your newly opened command shell and examine the value for the Path env var.
    0 讨论(0)
  • 2021-01-16 12:48

    In my case notebook server complained about a missing module pygments.formatters: "No module named pygments.formatters"

    Doing a "pip install pygments" fixed the problem for me.

    I am using IPython version 2.1.0.

    0 讨论(0)
  • 2021-01-16 12:49

    After installing pandoc from here make sure you've restarted jupyter and the terminal instance it is running from to update the path. (Aka part 4 of user3638179's answer).

    0 讨论(0)
提交回复
热议问题