Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

VSCode Jupyter cannot update kernels automatically

I'm working on Ubuntu by remoteSSH, and I updated python kernel in my vitual environment named nn form 3.7.9 to 3.8.5, however, I still find the old kernel standing in the jupyter kernel list. I want to know how to delete the old kernel name from the kernel list.

I've replaced python 3.7.9 and python3.6.4 with python 3.8.5, but the old kernels didn't disappear, I want to delete them manually.

Moreover, I can't select Python 3.8.5 from the kernel list.

like image 941
namespace-Pt Avatar asked Jul 23 '26 02:07

namespace-Pt


2 Answers

I had the same problem and the following might help someone else encountering the issue:

  1. Reload VS Code Window by Ctrl+Shift+P and selecting Reload Window.

  2. Reload the Python and Jupyter extensions under the Extensions in the Side Bar.

  3. Quit and relaunch VS Code.

It seems that VS Code is not that quick to update the interpreter list.

like image 51
bilgin Avatar answered Jul 24 '26 15:07

bilgin


Here's a workaround: in the command palette, search for Python: Select interpreter. You then get a dropdown with a little refresh button in the top right corner. After you refresh this list the new interpreter will be listed as a kernel for jupyter.

like image 43
Sebastiaan Avatar answered Jul 24 '26 16:07

Sebastiaan



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!