-
Notifications
You must be signed in to change notification settings - Fork 299
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
IPyKernel not detected as Conda environment is not loading #6644
Comments
@claudiaregio Please could you try this again & upload the logs from |
This just started for me today - everything worked fine yesterday, no changes, didn't even close my code down, went to run today and getting message that ipykernel is not installed or needs updated. |
@rdillinger Sorry to hear that, Please could you create a new issue with the details requestd in the issue template. |
Hi, yes, happy to, can you remind me what steps I need to take to get the complete log output? The main jupyter error I'm getting is that it is trying to exec an import ipykernel and failing (this either wasn't happening yesterday or wasn't failing yesterday). Info 2021-07-23 14:50:54: Process Execution: > ~\anaconda3\python.exe -c "import ipykernel"
|
|
@DonJayamanne - I just tried every extension back 5 months. Extensions prior to one month ago results in a complete "cannot launch notebook" error. Extension versions within the last month all (now) are resulting in the same kernel error and log results. This was generated with Jupyter version 2021.6.999406279. Info 2021-07-23 16:12:21: Starting raw kernel Python 3.7.3 64-bit ('anaconda3': conda)
|
@rdillinger
Next Replicate the issue & then:
|
This is with Jupyter most recent extension version, Python most recent extension version Provide the following information:
|
The main thing is that everything has worked very well for months, then today it just stopped - I hadn't run any package upgrades, version upgrades, and I hadn't even closed my code. I just walked away from computer, and when I came back, I was getting the error message in the screenshot above. After troubleshooting today, I'm not sure if the logs would be identical to ones I would have seen when this message first appeared, but I appreciate your help! |
@rdillinger are you still running into this issue with the latest versions of the Python & Jupyter extesnions? |
Hi,
Yes, I've been unable to run jupyter files since I reported it.
…________________________________
From: Don Jayamanne ***@***.***>
Sent: Wednesday, September 1, 2021 11:47:02 AM
To: microsoft/vscode-jupyter ***@***.***>
Cc: rdillinger ***@***.***>; Mention ***@***.***>
Subject: Re: [microsoft/vscode-jupyter] ipykernel not found in env that has it (#6644)
@rdillinger<https://github.com/rdillinger> are you still running into this issue with the latest versions of the Python & Jupyter extesnions?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub<#6644 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/ACCS5ORAVBYAJTZO2SEQWWDT7ZKINANCNFSM5AHZD4VA>.
Triage notifications on the go with GitHub Mobile for iOS<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675> or Android<https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
|
Can you launch Jupyter using the command line? Out side vs code?
This would happen with updates to the OS or the like (that results in changes to your startup shell scripts, hence breaking conda in the terminals) |
Please confirm it works in your terminal. if not, then i'm sorry, but I'm not sure we can do anything as its outside the control of VS Code. |
My it group runs periodic windows updates, but they'd never broken the shell scripts before with them. It could be that. I generally don't run in command line, only inside vscode. How would I get it running again?
…________________________________
From: Don Jayamanne ***@***.***>
Sent: Wednesday, September 1, 2021 11:55:41 AM
To: microsoft/vscode-jupyter ***@***.***>
Cc: rdillinger ***@***.***>; Mention ***@***.***>
Subject: Re: [microsoft/vscode-jupyter] ipykernel not found in env that has it (#6644)
Can you launch Jupyter using the command line? Out side vs code?
Based on your previous messages this seems to be the case. Meaning something else has changed outside vscode.
ctivate the conda environment you are using in the notebook - when I try to run conda activate conda in terminal, it gives me an error message about conda not being a recognized command
This would happen with updates to the OS or the like (that results in changes to your startup shell scripts, hence breaking conda in the terminals)
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub<#6644 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/ACCS5OTJS5MC56CS6JL2KN3T7ZLI3ANCNFSM5AHZD4VA>.
Triage notifications on the go with GitHub Mobile for iOS<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675> or Android<https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
|
|
Thank you, I'll try that, fingers crossed
…________________________________
From: Don Jayamanne ***@***.***>
Sent: Wednesday, September 1, 2021 12:02:58 PM
To: microsoft/vscode-jupyter ***@***.***>
Cc: rdillinger ***@***.***>; Mention ***@***.***>
Subject: Re: [microsoft/vscode-jupyter] ipykernel not found in env that has it (#6644)
How would I get it running again?
* Use the conda command prompt and run conda init
* Open your terminal and run conda init (if that doesn't work then <fully qualified path to conda> init.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub<#6644 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/ACCS5OWBAXAQ5OAHINJYGSLT7ZMEFANCNFSM5AHZD4VA>.
Triage notifications on the go with GitHub Mobile for iOS<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675> or Android<https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
|
Thanks, I'm closing this issue as its outside the control of VS Code. |
Hi,
I don't think it's an outside of vscode problem. I can run jupyter notebook perfectly, same kernel and python instance. I'm only getting an error connecting to the kernel inside vscode. I ran the conda inits, and that did not resolve the error.
…________________________________
From: Don Jayamanne ***@***.***>
Sent: Wednesday, September 1, 2021 12:49:18 PM
To: microsoft/vscode-jupyter ***@***.***>
Cc: rdillinger ***@***.***>; Mention ***@***.***>
Subject: Re: [microsoft/vscode-jupyter] ipykernel not found in env that has it (#6644)
Thanks, I'm closing this issue as its outside the control of VS Code.
Do let us know if that works.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub<#6644 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/ACCS5OUNWPAJ7JDYJUEVL4TT7ZRR5ANCNFSM5AHZD4VA>.
Triage notifications on the go with GitHub Mobile for iOS<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675> or Android<https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
|
THanks for the feedback, however I'm a little confused now.
|
Hi,
Conda doesn't work in the vscode terminal, but it does work outside of vscode in both the anaconda terminal and the regular terminal.
Vscode version: 1.59.1
Python version: 3.7.3
Conda version: 4.7.10
Jupyter ext version: I have tried every version created in the last 6 months.
…________________________________
From: Don Jayamanne ***@***.***>
Sent: Wednesday, September 1, 2021 1:58:10 PM
To: microsoft/vscode-jupyter ***@***.***>
Cc: rdillinger ***@***.***>; Mention ***@***.***>
Subject: Re: [microsoft/vscode-jupyter] ipykernel not found in env that has it (#6644)
ran the conda inits, and that did not resolve the error.
THanks for the feedback, however I'm a little confused now.
* Does conda work in the terminal in vscode (using VS Codes termina)?
* Does conda work in the terminal outside vscode?
* Please could you provide the following information:
* VS Code version
* Jupyter extenison version
* Conda version
* Python version
* Outputs from your Jupyter Output panel when you get the errors
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub<#6644 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/ACCS5ORFDKDYNS3UMLMOOUDT7ZZUFANCNFSM5AHZD4VA>.
Triage notifications on the go with GitHub Mobile for iOS<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675> or Android<https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
|
Hi, also, regarding output, I only get two pop up boxes, one says to reinstall or change the kernel (neither option succeeds), and a message box that says ipykernel is not installed (which I've checked, and it is installed)
…________________________________
From: Rachel Dillinger ***@***.***>
Sent: Wednesday, September 1, 2021 2:25:01 PM
To: microsoft/vscode-jupyter ***@***.***>; microsoft/vscode-jupyter ***@***.***>
Cc: Mention ***@***.***>
Subject: Re: [microsoft/vscode-jupyter] ipykernel not found in env that has it (#6644)
Hi,
Conda doesn't work in the vscode terminal, but it does work outside of vscode in both the anaconda terminal and the regular terminal.
Vscode version: 1.59.1
Python version: 3.7.3
Conda version: 4.7.10
Jupyter ext version: I have tried every version created in the last 6 months.
________________________________
From: Don Jayamanne ***@***.***>
Sent: Wednesday, September 1, 2021 1:58:10 PM
To: microsoft/vscode-jupyter ***@***.***>
Cc: rdillinger ***@***.***>; Mention ***@***.***>
Subject: Re: [microsoft/vscode-jupyter] ipykernel not found in env that has it (#6644)
ran the conda inits, and that did not resolve the error.
THanks for the feedback, however I'm a little confused now.
* Does conda work in the terminal in vscode (using VS Codes termina)?
* Does conda work in the terminal outside vscode?
* Please could you provide the following information:
* VS Code version
* Jupyter extenison version
* Conda version
* Python version
* Outputs from your Jupyter Output panel when you get the errors
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub<#6644 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/ACCS5ORFDKDYNS3UMLMOOUDT7ZZUFANCNFSM5AHZD4VA>.
Triage notifications on the go with GitHub Mobile for iOS<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675> or Android<https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
|
Go into the command palette and select |
Hi,
Outside vscode I'm referring to the conda terminal and a regular windows terminal.
Here the jupyter output from vscode.
Thank you
________________________________
From: Don Jayamanne ***@***.***>
Sent: Wednesday, September 1, 2021 3:37:48 PM
To: microsoft/vscode-jupyter ***@***.***>
Cc: rdillinger ***@***.***>; Mention ***@***.***>
Subject: Re: [microsoft/vscode-jupyter] ipykernel not found in env that has it (#6644)
but it does work outside of vscode in both the anaconda terminal and the regular terminal.
* What's your terminal inside vscode & outside vscode?
* Try toggling the value in your settings to see if this makes a difference (please try true & false)
terminal.integrated.inheritEnv
Hi, also, regarding output, I only get two pop up boxes,
Go into the command palette and select Jupyter: Show Output. on the bottom you'll see an output panel with the name Jupyter, please copy the contents from that screen (you might want to maximize the screen to copy all of the output)
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub<#6644 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/ACCS5OQSVNLFGBXI6HHX3GTT72FJZANCNFSM5AHZD4VA>.
Triage notifications on the go with GitHub Mobile for iOS<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675> or Android<https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
Info 2021-09-02 13:02:36: Starting raw kernel Python 3.7.3 64-bit ('anaconda3': conda)
Info 2021-09-02 13:02:36: installMissingDependencies C:\...\anaconda3\python.exe
Info 2021-09-02 13:02:36: Process Execution: > ~\anaconda3\python.exe -c "import ipykernel"
~\anaconda3\python.exe -c "import ipykernel"
Info 2021-09-02 13:02:36: Process Execution: > ~\anaconda3\python.exe -c "import ipykernel"
~\anaconda3\python.exe -c "import ipykernel"
Error 2021-09-02 13:02:45: Install Missing Dependencies, Class name = _, completed in 9317ms, has a falsy return value, Return Value: undefined [a [Error]: IPyKernel not installed into interpreter Python 3.7.3 64-bit ('anaconda3': conda):C:\...\anaconda3\python.exe
at _.handleKernelDependencyResponse (c:\...\.vscode\extensions\ms-toolsai.jupyter-2021.8.2031190714\out\client\extension.js:54:291495)
at _.installMissingDependencies (c:\...\.vscode\extensions\ms-toolsai.jupyter-2021.8.2031190714\out\client\extension.js:54:291076)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (internal/process/task_queues.js:93:5)] {
category: 'noipykernel',
reason: 1
}
Error 2021-09-02 13:02:45: Raw session failed to start because dependencies not installed
Info 2021-09-02 13:02:45: Shutdown session -- complete
Error 2021-09-02 13:02:45: failed to create INotebook in kernel, UI Disabled = false [a [Error]: IPyKernel not installed into interpreter Python 3.7.3 64-bit ('anaconda3': conda):C:\...\anaconda3\python.exe
at _.handleKernelDependencyResponse (c:\...\.vscode\extensions\ms-toolsai.jupyter-2021.8.2031190714\out\client\extension.js:54:291495)
at _.installMissingDependencies (c:\...\.vscode\extensions\ms-toolsai.jupyter-2021.8.2031190714\out\client\extension.js:54:291076)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (internal/process/task_queues.js:93:5)] {
category: 'noipykernel',
reason: 1
}
Error 2021-09-02 13:02:45: DataScience Error [a [Error]: IPyKernel not installed into interpreter Python 3.7.3 64-bit ('anaconda3': conda):C:\...\anaconda3\python.exe
at _.handleKernelDependencyResponse (c:\...\.vscode\extensions\ms-toolsai.jupyter-2021.8.2031190714\out\client\extension.js:54:291495)
at _.installMissingDependencies (c:\...\.vscode\extensions\ms-toolsai.jupyter-2021.8.2031190714\out\client\extension.js:54:291076)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (internal/process/task_queues.js:93:5)] {
category: 'noipykernel',
reason: 1
}
Error 2021-09-02 13:02:45: failed to start INotebook in kernel, UI Disabled = false [a [Error]: IPyKernel not installed into interpreter Python 3.7.3 64-bit ('anaconda3': conda):C:\...\anaconda3\python.exe
at _.handleKernelDependencyResponse (c:\...\.vscode\extensions\ms-toolsai.jupyter-2021.8.2031190714\out\client\extension.js:54:291495)
at _.installMissingDependencies (c:\...\.vscode\extensions\ms-toolsai.jupyter-2021.8.2031190714\out\client\extension.js:54:291076)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (internal/process/task_queues.js:93:5)] {
category: 'noipykernel',
reason: 1
}
Error 2021-09-02 13:02:45: Failed to execute cells in CellExecutionQueue [a [Error]: IPyKernel not installed into interpreter Python 3.7.3 64-bit ('anaconda3': conda):C:\...\anaconda3\python.exe
at _.handleKernelDependencyResponse (c:\...\.vscode\extensions\ms-toolsai.jupyter-2021.8.2031190714\out\client\extension.js:54:291495)
at _.installMissingDependencies (c:\...\.vscode\extensions\ms-toolsai.jupyter-2021.8.2031190714\out\client\extension.js:54:291076)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (internal/process/task_queues.js:93:5)] {
category: 'noipykernel',
reason: 1
}
Info 2021-09-02 13:02:45: Cancel pending cells
|
Thanks for the information. Here are a few things i'll need:
|
I can use any of those. I dont use a shell directly for much these days, but when I do it's usually command prompt or powershell.
Thank you, appreciate the help
…________________________________
From: Don Jayamanne ***@***.***>
Sent: Friday, September 3, 2021, 10:20 AM
To: microsoft/vscode-jupyter
Cc: rdillinger; Mention
Subject: Re: [microsoft/vscode-jupyter] IPyKernel not detected as Conda environment is not loading (#6644)
Ok, so it looks like conda isn't working at all in VS Code.
Basically this isn't a problem with the extension or VS Code, but something to do with your setup.
Here are a few things i'll need:
* What shell are you using? Powershell or command prompt or other in VS Code?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub<#6644 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/ACCS5OVZZY6PYHBVETSNCQDUADRTZANCNFSM5AHZD4VA>.
Triage notifications on the go with GitHub Mobile for iOS<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675> or Android<https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
|
Please could you provide the information requested. Thanks |
Hi sorry I was not forgetting about this, I am traveling and not able to work today. Friday?
…________________________________
From: Don Jayamanne ***@***.***>
Sent: Tuesday, September 7, 2021 4:04:10 PM
To: microsoft/vscode-jupyter ***@***.***>
Cc: rdillinger ***@***.***>; Mention ***@***.***>
Subject: Re: [microsoft/vscode-jupyter] IPyKernel not detected as Conda environment is not loading (#6644)
Please could you provide the information requested. Thanks
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub<#6644 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/ACCS5ORZZAGX4ZLAWMLQL23UAZ44VANCNFSM5AHZD4VA>.
Triage notifications on the go with GitHub Mobile for iOS<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675> or Android<https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
|
Closing this issue as its been over 4 weeks, since the information was requested. |
Environment data
Steps to reproduce:
Expected behavior
For ipykernel to install and be able to run cells
Actual behavior
Stuck in endless loop of being told to install ipykernel when trying to run cell
**Edit: I checked in through Conda CLI that ipykernel is actually installed here, yet I am stuck in the endless loop because it appears not to be finding it.
The text was updated successfully, but these errors were encountered: