【问题标题】:Error: Importing notebooks requires Jupyter nbconvert to be installed. Julia错误:导入笔记本需要安装 Jupyter nbconvert。朱莉娅
【发布时间】: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


    【解决方案1】:

    我有一个和你类似的问题。我可以猜到,唯一的区别是我使用的是 Mac 并且使用的是 TeXShop 而不是 MikTex。我已经使用 xelatex 编译了 .tex 文件,所以我认为我们都需要告诉 Visual Studio Code xelatex 文件在哪里。我在 Internet 上做了一些研究,并找到了在 VSC 上安装 LaTex Workshop 扩展的建议。它没有解决我的问题,但它会为你工作。但愿如此。在这种情况下让我知道。

    最好的,

    【讨论】:

    • 有点奇怪,因为在 Jupiter (anaconda) 中,我可以使用 mactex 从 macbook 导出为 pdf,但我会搜索该扩展名,谢谢!!
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2018-11-27
    • 2014-04-26
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2014-02-04
    相关资源
    最近更新 更多