ubuntu之jupyter notebook导出pdf的方法

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/zong596568821xp/article/details/82843878

在使用jupyter notebook运行完程序之后,想要把代码和结果保存成pdf文件,jupyter notebook自带导出pdf的功能,如图所示

但是第一次运行的时候报错,提示 nbconvert failed: Pandoc wasn't found. 如图所示

解决方法是使用以下两条指令安装(注意是在ubuntu环境下运行的jupyter notebook)

sudo apt install pandoc
sudo apt install texlive-xetex

安装完之后再按照第一步的步骤即可导出pdf文件

猜你喜欢

转载自blog.csdn.net/zong596568821xp/article/details/82843878