Exporting Jupyter notebook doesn't work in VSCode

Viewed 41

I'm using VSCode with WSL Ubuntu 20.04. I'm trying to export a Jupyter notebook to PDF or HTML in VSCode using the built-in Export feature in the Jupyter extension. I get this error message: Jupyter command 'jupyter-nbconvert' not found.

Things I have tried:

  • Changing the interpreter that starts Jupyter in VSCode
  • Uninstalling and reinstalling jupyter and nbconvert in the integrated terminal
  • Making sure the path where Jupyter is installed is on my PATH

Things I have not tried that were suggested by others in this similar question:

  • Uninstalling and reinstalling jupyter and nbconvert in Powershell. How would one do this? pip3 install nbconvert returns this error: pip3 : The term 'pip3' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.

Running which nbconvert from the integrated terminal returns nothing. I installed nbconvert via pip3.

1 Answers

pip3 : The term 'pip3' is not recognized as the name of a cmdlet

Try this command to install nbconvert:

python -m pip install nbconvert -U
Related