【发布时间】:2021-12-06 20:43:25
【问题描述】:
我正在尝试将 Julia Jupyter Notebook 导出为 pdf 格式
我安装了最新版本的 Julia 和 VS Code(以及 VS Code 上的 Julia 和 jupyter 扩展)
我可以在 jupyter 笔记本上做得很好,代码运行并保存为 .ipynb 格式。
这就是我所做的:
在我刚刚输入的cmd中
py -m pip install jupyter
py -m pip install nbconvert
但每当我尝试从 VS Code 导出笔记本时,我都会收到此错误:
Error 2021-10-19 19:25:11: Export failed [Error: Importing notebooks requires Jupyter nbconvert to be installed.
at u.getExportInterpreter (c:\Users\jparedesm\.vscode\extensions\ms-toolsai.jupyter-2021.9.1101343141\out\client\extension.js:37:319922)
at processTicksAndRejections (internal/process/task_queues.js:93:5)
at async b.export (c:\Users\jparedesm\.vscode\extensions\ms-toolsai.jupyter-2021.9.1101343141\out\client\extension.js:52:919260)
at async g.export (c:\Users\jparedesm\.vscode\extensions\ms-toolsai.jupyter-2021.9.1101343141\out\client\extension.js:37:290037)
at async l._executeContributedCommand (c:\Users\jparedesm\AppData\Local\Programs\Microsoft VS Code\resources\app\out\vs\workbench\services\extensions\node\extensionHostProcess.js:94:111644)]
Error 2021-10-19 19:25:11: If you have not installed xelatex (TeX) you will need to do so before you can export to PDF, for further instructions go to https://nbconvert.readthedocs.io/en/latest/install.html#installing-tex.
To avoid installing xelatex (TeX) you might want to try exporting to HTML and using your browsers "Print to PDF" feature.
我确实安装了 MikTex。
所以我不知道发生了什么。
请告诉我如何导出 jupyter notebook。
这是笔记本的样子:
【问题讨论】:
标签: pdf visual-studio-code jupyter-notebook jupyter nbconvert