-
Notifications
You must be signed in to change notification settings - Fork 293
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
Failed to connect to Jupyter notebook when xeus-cling is installed as a kernel #3009
Comments
The web worker messages are expected. They have no impact on running a cell. However your jupyter might be spewing extra output that's messing up our parsing. Can you run 'python -m jupyter notebook --version' and respond with the results? |
Or even better if you could go to 'Help | Toggle Developer Tools', click on the console tab, right click and save as, and upload the log file. Thanks. |
jupyter notebook --version 6.0.1 Here is the log file: |
From your log it looks like we find jupyter, but we can't enumerate the kernel specs you have installed. It never finishes. What do you get if you do this: |
|
Hmm. I installed those kernels and it still works for me. I think the only way forward would be for us to add more logging and then have you try again. |
vscode.log
It seems jupyter uses xcpp rather than python kernel, maybe this plugin needs a kernel selection option, and auto select python as default :) |
Hmm. Not sure why it's picking your kernel instead. It's supposed to only pick python kernels. (There's a backlog item to allow kernel picking, we just haven't gotten to it yet) What does the json for your python kernel look like? (It should be a file under /home/charles/miniconda3/share/jupyter/kernels/python3) There might be a problem with path matching that's preventing us from figuring out it's the python kernel. Additionally I did add a bunch more logging to our kernel enumeration. If you install the insider's build of the extension, it should generate more info around kernel spec enumeration. |
python kernel.json: {
"argv": [
"/home/charles/miniconda3/bin/python",
"-m",
"ipykernel_launcher",
"-f",
"{connection_file}"
],
"display_name": "Python 3",
"language": "python"
} The logs is here: |
@the0demiurge can you print out your other kernel specs? I'm guessing we're picking up the path in those files and trying to see if they're a python interpreter or not. That call may never be returning. |
Or it might be a conda environment that's configured to use xcpp somehow. The code I think that's failing is this: |
That code is using xcpp to try and run a python file. Somehow we think |
Yeah that's likely the problem. I get this if I run xcpp by itself and it sits there waiting.
|
I'm going to add a timeout into our interpreter path checker. |
I added a timeout to where I think the problem is. Our next insider's build should have the fix for this, assuming the insider's build generates. It should be build 40512 or higher to have this fix. |
This worked! Thank you! |
Bug: Notebook Editor, Interactive Window, Python Editor cells
Steps to cause the bug to occur
Actual & Expected behavior
Your Jupyter and/or Python environment
Please provide as much info as you readily know
conda 4.7.11
jupyter notebook --version 6.0.1
Developer Tools Console Output
The text was updated successfully, but these errors were encountered: