无法下载ipython笔记本作为HTML

时间:2015-02-12 22:31:47

标签: python ipython ipython-notebook

我有一个类似的问题,其他人下载我的ipython笔记本,标题为html文件。起初它说pandoc不在我的路上。我按照这个建议(Convert IPython 2.0 notebook to html from the 'file' menu)插入了正确的目录。现在我在浏览器中收到此错误:

nbconvert failed: [Error 2] The system cannot find the file specified

这是我在shell中遇到的错误:

C:\Users\rebortz\Anaconda\lib\site-packages\IPython\nbconvert\filters\markdown.py:78: UserWarning: Node.js 0.9.12 or later wasn't found.
Nbconvert will try to use Pandoc instead.}

  "Nbconvert will try to use Pandoc instead.")
WARNING:tornado.general:500 GET /nbconvert/html/HW%202.ipynb?download=true (::1): nbconvert failed: [Error 2] The system cannot find
 the file specified
ERROR:tornado.access:{
  "Accept-Language": "en-US,en;q=0.8",
  "Accept-Encoding": "gzip, deflate, sdch",
  "Connection": "keep-alive",
  "Accept": "text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8",
  "User-Agent": "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/40.0.2214.111 Safari/537.36",
  "Host": "localhost:8888",
  "Referer": "http://localhost:8888/notebooks/HW%202.ipynb"
}
ERROR:tornado.access:500 GET /nbconvert/html/HW%202.ipynb?download=true (::1) 335.00ms referer=http://localhost:8888/notebooks/HW%20
2.ipynb

我还根据另一个建议安装了pywin32。更新了我的node-webkit。我使用的是Windows 7 Professional。

请注意,这只是标题的问题。如果没有标题,它似乎工作正常。

谢谢大家。

1 个答案:

答案 0 :(得分:0)

相当简单的解决方案。刚安装 - http://nodejs.org/download/ - 使用msi for windows并且工作正常。谢谢大家!

相关问题