从'文件'菜单将IPython 2.0笔记本转换为html [英] Convert IPython 2.0 notebook to html from the 'file' menu

查看:267
本文介绍了从'文件'菜单将IPython 2.0笔记本转换为html的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图从文件菜单中将我的笔记本转换为html(在2.0中添加了很好的功能),但是当我这样做时,我得到一个500:内部服务器错误屏幕:

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:

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

我使用Windows安装程序从链接安装了Pandoc,但仍然收到相同的错误。对于如何解决这个问题,有任何的建议吗?我需要在哪里放置我刚下载的Pandoc文件夹或pandoc.exe才能使其工作?

I've installed Pandoc from the link using the windows installer but keep getting the same error. Any suggestions on how to fix this? Where do I need to put the Pandoc folder or pandoc.exe that I just downloaded to make this work?

推荐答案


  1. 在Windows开始菜单中,在搜索框中键入编辑系统环境变量,选择环境变量选项,该选项应打开一个系统属性对话框,您可以使用编辑Path系统环境变量。

  2. 使用环境变量编辑器将pandoc.exe的路径添加到Path系统变量,详细信息请参阅here 。对于我的Windows 7环境,我在已定义的路径系统变量的末尾添加了C:\ Users \IBM_ADMIN\AppData\Local\Pandoc,您应该可以从较低的System变量对话框,然后单击编辑...进行修改。将路径附加到pandoc.exe,然后单击确定。

  3. 在新打开的Windows命令提示符下重新启动ipython notebook会话,以便选择系统环境变量更改。要确认您对Path系统环境变量的更改是否正确,请在新打开的命令shell中的提示符处输入set,并检查Path env var的值。
  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.

这篇关于从'文件'菜单将IPython 2.0笔记本转换为html的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆