VSCode, Python, Jupyter Extension - "Select Kernel" does not find anything

Dear Manjaro Community,

I hope there is someone here who can help me with my problem because it is rather specific…

I am working with python and using vscode on my Manjaro Linux laptop. Currently I want to try out a new Extension called “Jupyter”. When I have my “.ipynb”-File to run it, VS-Code wants me to select a Kernel with the Button in the upper right corner.

But when I click on it, it doesnt find anything to load…
Here is a screenshot from the situation…

What I already tried:

  • Restarting my Laptop and the “code”-Application
  • Installing the extension “ipython” of the marketplace
  • Installing The kernel using sudo pacman -S python-ipykernel

If you need any specific info from my system to help me, please ask and I will try to give you the information needed.

Thanks in advance!

So:
probably not directly Manjaro related.

Perhaps you want to add a bit more context to your query.

There might be better help from upstream developers at Project Jupyter · GitHub

Well, on the Windows-Laptops of my colleges it works perfectly fine, so I think it is at least Linux-related…

If I would know what kind of context helps here, then I would gladly post it here.

I think you need to read the hint provided by vscode more closely.

As I read it - the request is for the location of the kernel source - which you can get from kernel.org

The word “Kernel” usually refers to the Linux Kernel in our community. But in this case it is not the Linux Kernel, it refers to the IPython kernel.

The IPython kernel is the Python execution backend for Jupyter.
Installing the IPython kernel — IPython 8.28.0 documentation

1 Like

QUICK UPDATE: Maybe THAT is the main problem?

ipython kernel install --prefix /tmp
[InstallIPythonKernelSpecApp] WARNING | Installing to /tmp/share/jupyter/kernels, which is not in ['/home/<USER>/.local/share/jupyter/kernels', '/usr/share/jupyter/kernels', '/home/<USER>/.ipython/kernels']. The kernelspec may not be found.
Installed kernelspec python3 in /tmp/share/jupyter/kernels/python3

request is for the location of the kernel source

Arch Linux - python-ipykernel 6.29.5-1 (any)

python-ipykernel 6.29.5-1

Description: 	The ipython kernel for Jupyter
Upstream URL: 	https://pypi.org/project/ipykernel/

I think the main question is, WHERE does vs-code look, when I press the button “select kernel”. If I know that, then I just put the kernel in and then it should be visible and clickable.
According to the Manage Jupyter Kernels in Visual Studio Code Page it should more look like this:

On Manjaro /tmp is on tmpfs and is cleared on every boot

  • if you want it to survive restart use /var/tmp - which is physical disk.

Okay… this seems to be a larger problem. I finally found some similar posts in the Github-Forum:

There is even a specific comment saying this:

I’m facing this same issue on Manjaro, running version 1.77.1. I installed the Insiders Build using this command:
yay -S visual-studio-code-insiders-bin
Installed the python/jupyter extensions and it seems to be functioning as I would expect.

Unfortunately… this doenst work for me…

There is one last thing, I want to try:
How can I install the “code” version 1.77.1? Or: an older version of a package in general?

Hi! I had the same problem and it worked for me to launch code as follows

code --enable-proposed-api ms-toolsai.jupyter --enable-proposed-api ms-python.python

Unfortunately, I do not know why exactly it works.

1 Like

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.