-
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
Jupyter cannot find any kernel, or even the Python extension. #16019
Comments
Sorry you are running into this issue and thank you for filing this issue.
The problem is that the Python extension fails to get installed @luabud perhaps this is the issue with the Pylance dependency. |
But I did installed the Python extension. In fact when I install Jupyter Extension there shouldn't be any way to install jupyter without Python extension at the first place. I don't know why but it just keeping telling me to install Python extension again and again, even though python extension had been there the whole time. I'm posting the log for my MacOS now, where I launched the windows, change interpreter, then attempt to launch interactive python. Please tell me if there's any further information I can provide to help, as I've been trying very hard to solve this issue for quite a long time. |
This is the log for Python Extesion where analysis Log is set to
|
Here's the log for Jupyter extension where the logging level is set to
|
Here's the my machine details generated by issue reporter. (Also not sure why its reporting my remote machine, but the python and jupyter issue only happened on my local machine.) Extension version: 2024.14.0
User Settings
Installed Extensions
System Info
A/B Experiments
|
From the logs of Jupyter extension python extension isn't installed Pleaser can you open developer tools (using the command 'Toggle Develiper Tools') |
Is there anything I should look for? As there are quite a bit of error actually.
|
|
Sorry for the late reply. But on my Linux machine, I just realize turning off setting |
It seemed to be also the case for my code-insider in MacOS too. @DonJayamanne is this a known bug? Where adding python to affinity list appears to break something which causes Jupyter to malfunction. "extensions.experimental.affinity": {
//...
// "ms-python.python": 1, // uncommenting this line causes the issue.
}, |
I guess for now removing affinity would fix the issue |
The setting Out of curiosity, why did you change that setting? |
Yeah I figured it's probably not planned as supported at the very moment. I believe it was because I was trying to do some work on latex while using Python to generate tables for myself. There was a period I was very frustrated because the vscode was very laggy even I've already put some very heavy plugins to affinity (like vscode-vim). So I just put everything into affinity hoping it'd improve the performance. It didn't. Hindsight I probably just had a shit laptop, and latex workshop is also kinda slow. And that setting was synced, so I had the same problem for all of my machines. |
Type: Bug
I find my Jupyter doesn't seem to find any Python installation locally, even though there were multiple conda environments and base python from system. This happened to both my Macbook Pro and Linux. But strangely not to my remote servers. (Both are Linux)
Steps:
# %%
), an interactive will be created, but it's prompted to select a kernel to run cell.select a kernel
, menu with choicesPython3 (ipykernel) Current selected
andSelect Another Kernel
is prompted.Python Environment
,Jupyter Kernel
,Existing Jupyter Server
.Installing Python extension and locating kernels
. (Which fails eventually).ipykernel
in previous step)ipykernel
, which doesn't do anything. When attempting to run the cell nothing happens.Here's the trace output of Jupyter extension.
Extension version: 2024.7.0
VS Code version: Code - Insiders 1.93.0-insider (4849ca9bdf9666755eb463db297b69e5385090e3, 2024-09-04T13:13:15.344Z)
OS version: Linux x64 5.17.5-76051705-generic
Modes:
Remote OS version: Linux x64 5.15.0-97-generic
System Info
canvas_oop_rasterization: enabled_on
direct_rendering_display_compositor: disabled_off_ok
gpu_compositing: enabled
multiple_raster_threads: enabled_on
opengl: enabled_on
rasterization: enabled
raw_draw: disabled_off_ok
skia_graphite: disabled_off
video_decode: enabled
video_encode: disabled_software
vulkan: disabled_off
webgl: enabled
webgl2: enabled
webgpu: disabled_off
webnn: disabled_off
A/B Experiments
The text was updated successfully, but these errors were encountered: