Fix: error: Jupyter command `jupyter-nbconvert` not found [VSCode]

If you get the error saying "`jupyter-nbconvert` not found." while you are trying to export a Jupyter Notebook to HTML in Visual Studio Code, try the below steps.

Fix:

  1. Open Terminal/Command Prompt/PowerShell on your device (Mac/Windows 10/11)
  2. Now try to uninstall jupyter-nbconvert using pip (pip3)
    pip uninstall jupyter-nbconvert

    or

    pip3 uninstall jupyter-nbconvert
  3. Once done, re-install it,
    pip install jupyter-nbconvert

    or

    pip3 install jupyter-nbconvert
  4. Finally, try the command again,
    jupyter nbconvert --to html Notebook-name.ipynb

Comments & Discussion

Facing issues? Have questions? Post them here! We're happy to help!