-
Notifications
You must be signed in to change notification settings - Fork 298
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
Exporting notebooks to script requires Jupyter nbconvert but users is not prompted to do so. #5222
Comments
Launching |
Installing |
Pip freeze for reference:
|
Hi @petrroll, I am unable to repro at this time. If you update to the latest version of vs code does this problem persist? |
+1 Error show
But
It works perfectly when I run in the command line. Extra Info show
|
Can folks in this thread confirm that the problem persists with the latest version of the Jupyter extension, v2021.5.745244803? If the problem does persist, can I ask your help with trying something? In the Jupyter output log you should see a command like the following (with usernames and paths varying):
This is the command we use to check if nbconvert is installed into the current interpreter. Would y'all be able to run the above command (swapping out the paths as appropriate) in your terminal and paste the output in a new comment? That will help us understand why we are failing to detect nbconvert being installed. Thanks! |
Closing due to lack of response for over a week (actually it's been 4) |
Hi there all! Thank you @joyceerhl for opening the issue back up. I can confirm that I have this issue with the most recent version of VSCode. Few observations I have had this morning:
|
import sys
print(sys.executable)
|
Thank you @joyceerhl for looking into this. I try to keep my python distributions simple, so the one I have chosen to run that notebook is located I have also installed (I forgot to mention - the export still fails.) |
I opened settings.json and added |
@Goudarzi Would you mind providing the full logs from the Jupyter output panel after exporting fails? That should have more info re: why this is happening. |
GM @joyceerhl, this is what shows up in output when I click
Could the extension be referring to a different |
@Goudarzi There should be more info in the output panel providing info on which python.exe we're trying to use. Would you mind sending all of it? You may need to configure "jupyter.logging.level": "debug" in your user settings.json if there isn't more output. The beginning of the log should look something like this: |
I did a clear output before clicking the export. Will set the log level and try again. No worries. |
The debug level logging was already set. Here is the log from the moment I open the file, until when the failure happens:
Let me know if I can help! Thanks again! |
The solution to this problem would be to not even use nbconvert anymore. Converting a notebook to a python script and vice versa should be easy to do with straight typescript code. |
#7783 is a dupe/related |
The specific issue of prompting for nbconvert is still not fixed. However, since we no longer require it, most users will not run into this problem. However, if you need to have cell magic's converted, then nbconvert will be necessary. There's a setting to enforce the use of nbconvert (Jupyter: Python Export Method). If set, the user will not be prompted to install nbconvert. Same repro as this bug. We'll add this prompting to a future iteration. |
I've this problem too. So how can I get out of this |
@LBGPRO can you open a new issue? |
Environment data
Repro steps:
code .
.ipynb
file (opens with correctvenv
pythonExpected behaviour
Works
Actual behaviour
Fails with:
while
nbconvert
is installed in active venv:Correct interpreter is selected:
The text was updated successfully, but these errors were encountered: