Eporting PDF from VS Code

When I try to export a file from Jupyter in VS Code, it fails, and I get several messages.

Error 2020-11-22 22:09:53: Export failed [Error: Importing notebooks requires Jupyter nbconvert to be installed.
	at u.getExportInterpreter (c:\Users\Brett\.vscode\extensions\ms-toolsai.jupyter-2020.11.372831992\out\client\extension.js:32:528426)
	at runMicrotasks (<anonymous>)
	at processTicksAndRejections (internal/process/task_queues.js:94:5)
	at async _.export (c:\Users\Brett\.vscode\extensions\ms-toolsai.jupyter-2020.11.372831992\out\client\extension.js:49:256389)
	at async m.export (c:\Users\Brett\.vscode\extensions\ms-toolsai.jupyter-2020.11.372831992\out\client\extension.js:32:256898)]
Error 2020-11-22 22:09:53: 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.

I think the error about nbconvert not being installed is the most relevant, but when I tried installing nbconvert in conda, it said that conda was already installed. I’m not sure what went wrong, I’d think that the ability to export would already be installed.

1 Like

Did you find a solution?

Make sure that you have some sort of LaTeX processor (not sure if processor is the right word) installed. I would highly recommend Tex Live but another good one is MikTex.

2 Likes