nbconvert --to pdf 有效,但不是来自 Jupyter Notebook 菜单 (Python)
nbconvert --to pdf works, but not from Jupyter Notebook menu (Python)
我最近升级了我计算机上的每个 Python 库,但我无法从 Jupyter 的文件菜单转换我的笔记本。我收到消息:
500 : Internal Server Error
The error was:
nbconvert failed: '.\cumulative chart (for ANE17 poster).ipynb' exists but is not a directory
我用命令行转换就可以了,居然还行:
[NbConvertApp] Converting notebook .\cumulative chart (for ANE17 poster).ipynb to pdf
[NbConvertApp] Support files will be in cumulative chart (for ANE17 poster)_files\
[NbConvertApp] Making directory .\cumulative chart (for ANE17 poster)_files
[NbConvertApp] Making directory .\cumulative chart (for ANE17 poster)_files
[NbConvertApp] Writing 26403 bytes to .\notebook.tex
[NbConvertApp] Building PDF
[NbConvertApp] Running xelatex 3 times: ['xelatex', '.\notebook.tex']
[NbConvertApp] Running bibtex 1 time: ['bibtex', '.\notebook']
[NbConvertApp] WARNING | b had problems, most likely because there were no citations
[NbConvertApp] PDF successfully created
[NbConvertApp] Writing 43091 bytes to .\cumulative chart (for ANE17 poster).pdf
但是,Jupyter、and/or nbconvert、and/or Pandoc/MiKTex 库发生了什么?感谢您的输入
实际上,我在重新安装Jupyter后遇到了同样的问题。根据 this page,这是从 5.2 开始的 notebook
软件包的最新版本中的一个错误,应该在以后的版本中修复。目前,解决方案只是降级 notebook
包,例如:
pip install -U "notebook<5.2"
至少对我有用。
我最近升级了我计算机上的每个 Python 库,但我无法从 Jupyter 的文件菜单转换我的笔记本。我收到消息:
500 : Internal Server Error
The error was:
nbconvert failed: '.\cumulative chart (for ANE17 poster).ipynb' exists but is not a directory
我用命令行转换就可以了,居然还行:
[NbConvertApp] Converting notebook .\cumulative chart (for ANE17 poster).ipynb to pdf
[NbConvertApp] Support files will be in cumulative chart (for ANE17 poster)_files\
[NbConvertApp] Making directory .\cumulative chart (for ANE17 poster)_files
[NbConvertApp] Making directory .\cumulative chart (for ANE17 poster)_files
[NbConvertApp] Writing 26403 bytes to .\notebook.tex
[NbConvertApp] Building PDF
[NbConvertApp] Running xelatex 3 times: ['xelatex', '.\notebook.tex']
[NbConvertApp] Running bibtex 1 time: ['bibtex', '.\notebook']
[NbConvertApp] WARNING | b had problems, most likely because there were no citations
[NbConvertApp] PDF successfully created
[NbConvertApp] Writing 43091 bytes to .\cumulative chart (for ANE17 poster).pdf
但是,Jupyter、and/or nbconvert、and/or Pandoc/MiKTex 库发生了什么?感谢您的输入
实际上,我在重新安装Jupyter后遇到了同样的问题。根据 this page,这是从 5.2 开始的 notebook
软件包的最新版本中的一个错误,应该在以后的版本中修复。目前,解决方案只是降级 notebook
包,例如:
pip install -U "notebook<5.2"
至少对我有用。