Jupyter Notebook 转pdf 错误
程序员文章站
2022-05-28 11:15:53
...
nbconvert failed: PDF creating failed, captured latex output:
This is XeTeX, Version 3.14159265-2.6-0.99999 (TeX Live 2018/W32TeX) (preloaded format=xelatex)
restricted \write18 enabled.
entering extended mode
! Undefined control sequence.
<> .\notebook
.tex
?
! Emergency stop.
<> .\notebook
.tex
No pages of output.
Transcript written on ?.
解决方法:
1、如果文件路径有带中文,将中文去掉
2、找到安装路径下的pdf.py 文件打开
即…\site-packages\nbconvert\exporters\pdf.py
#writer = Instance("nbconvert.writers.FilesWriter", args=(), kw={'build_directory': '.'})
writer = Instance("nbconvert.writers.FilesWriter", args=(), kw={'build_directory': ''})
将'build_directory': '.'
改为 'build_directory': ''
参考答案:GitHub
上一篇: Drools动态构造规则内容
下一篇: MS SQL SERVER清除日志文件
推荐阅读
-
windows 10 CMD 运行 jupyter notebook 时 NotImplementedError 错误
-
jupyter notebook导出pdf并支持中文
-
Jupyter notebook 启动错误 “sys/un.h” No such file or directory
-
启动jupyter notebook错误
-
关于Jupyter Notebook 无法导出pdf(latex)
-
Jupyter Notebook 转pdf 错误
-
Jupyter Notebook导出成pdf
-
Jupyter notebook 的各种配置 nbextensions 插件,中文转英文,安装nb_conda插件,添加kernel等等
-
jupyter notebook导出pdf并支持中文
-
ubuntu安装 Jupyter notebook 显示错误: ImportError: No module named 'pysqlite2'