-
Notifications
You must be signed in to change notification settings - Fork 302
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Jupyter command jupyter-nbconvert
not found in VS Code on Win10
#4347
Comments
The log in the OUTPUT panel is as followed. `> D:\Python\Python37\python.exe c:\Users\木辛.vscode\extensions\ms-toolsai.jupyter-2020.12.414227025\pythonFiles\pyvsc-run-isolated.py jupyter nbconvert c:\Users\木辛\AppData\Local\Temp\5e90ef96-fd0c-44c3-851a-72578f6922b4\Lab04-11711203.ipynb --to html --output tmp-8180nJyFVOI4wzPo.html --output-dir ~\AppData\Local\Temp --debug
|
Hey @Jupiter-ZZC Sorry about the issue here, and thanks for providing the output. I think that the first thing to check here would be to see if nbconvert (which is what our extension uses to do the conversion) can work outside of VS Code. It looks to me like you are not using a virtual environment or conda environment so I think that from a Command Prompt window you can basically just run the following command:
That Lab04-11711203.ipynb file looks like it's in a temporary location, so you can just change that name to point at any ipynb file on disk. If you do that does nbconvert run and output an html file? |
HI! Thank you for you help @IanMatthewHuff . I have tried the command in cmd with little adjustment to make it convert a non-temporary notebook file. Yet the process failed again. Belows are the adjusted command and output in cmd. |
@Jupiter-ZZC I believe that I didn't specify that command right, you could try that again with a -m after python.exe. So A couple more quick things, could you get the version of nbconvert that you are working with? After pulling that you could try an uninstall and reinstall of nbconvert.
If you have a bad version of nbconvert that might get you into a working state. |
I had a similar issue. In my case the solution was to to launch |
Thank you @jf20191031 This resolved my issue. |
I was trying to export my jupyter notebook in the VS Code to html or pdf. However when I exported it, the process automatically breaked and throwed exception as Jupyter command
jupyter-nbconvert
not found. I have gone through version check and found that nbconvert and jupyter were installed. Therefore I dont know why the process would failed.Environment data
Expected behaviour
Convert the jupyter notebook to html
Actual behaviour
the process breaks
Steps to reproduce:
Logs
Output for
Jupyter
in theOutput
panel (View
→Output
, change the drop-down the upper-right of theOutput
panel toJupyter
)`
`
The text was updated successfully, but these errors were encountered: