将jupyter笔记本转换为pdf:安装pandoc时遇到错误 [英] Convert jupyter notebook to pdf: Error encounters when install pandoc

查看:161
本文介绍了将jupyter笔记本转换为pdf:安装pandoc时遇到错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试将.ipynb转换为pdf. 我在Windows上,并通过IE浏览器使用Jupyter.

I was trying to convert .ipynb to a pdf. I'm on Windows and use Jupyter via IE browser.

我正在跟踪 http://pandoc.org/installing.html 进行安装潘多克 这是我所做的:有建议吗?

I'm following the link http://pandoc.org/installing.html to install Pandoc. Here's what I have done: Any suggestions?

  • Install MikTex: http://miktex.org/download
  • Install pandoc

  • 安装堆栈:
  • -从pandoc文件夹转到cmd,运行堆栈设置
  • -stack初始化
  • -堆栈安装---->错误!

推荐答案

如果您想要替代它而不是使用nbconvert,可以做的是:

If you would like an alternative to it instead of using nbconvert what you can do is :

  1. 从文件"选项中以HTML格式下载您的ipynb文件.
  2. 右键单击并选择打印,或使用 Ctrl + P .
  3. 另存为PDF
  1. Download your ipynb file as HTML from File option.
  2. Right-click and select print or use Ctrl+P.
  3. Save as PDF

容易

这篇关于将jupyter笔记本转换为pdf:安装pandoc时遇到错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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