html - 从 'file' 菜单将 IPython 2.0 notebook 转换为 html

标签 html ipython pandoc

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

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

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

最佳答案

  1. 在 Windows 开始菜单的搜索框中键入“编辑系统环境变量”
  2. 选择“环境变量”选项,这将打开一个系统属性对话框,您可以使用该对话框编辑路径系统环境变量。
  3. 使用环境变量编辑器将 pandoc.exe 的路径添加到 Path 系统变量,详见 here .对于我的 Windows 7 环境,我在已经定义的路径系统变量的末尾添加了“;C:\Users\IBM_ADMIN\AppData\Local\Pandoc”,您应该可以从下方的“系统变量”对话框中选择它,然后单击编辑...进行修改。将路径附加到 pandoc.exe,然后单击“确定”。
  4. 在新打开的 Windows 命令提示符中重新启动 ipython notebook session ,这样您就可以获取系统环境变量更改。要确认您对 Path 系统环境变量的更改是正确的,请在新打开的命令 shell 中的提示符下键入“set”并检查 Path env var 的值。

关于html - 从 'file' 菜单将 IPython 2.0 notebook 转换为 html,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/23620321/

相关文章:

javascript - 根据浏览器显示DIV并根据浏览器版本添加类

python - 在 jupyter notebook 中自定义打印

python - Matplotlib 绘图窗口未使用 command-w 关闭

ipython - 记录 IPython 输出?

pdf - 如何 : Markdown PDF align table to the left

javascript - 世界地图平面 Mercator.svg 与国家名称

html - Bootstrap中嵌入的pdf不是全高

html - 使用 CSS 顺序显示 flex

pdf-generation - 如何从 pandoc 生成的 LaTeX 图形 block 中删除 `\centering` 标签?

pdf - BibTeX 引用中的 LaTeX 数学不适用于 pandoc